Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracker 协议讨论 #6

Closed
PlexPt opened this issue Jan 29, 2023 · 5 comments
Closed

tracker 协议讨论 #6

PlexPt opened this issue Jan 29, 2023 · 5 comments

Comments

@PlexPt
Copy link
Owner

PlexPt commented Jan 29, 2023

tracker可以有很多种协议,如

  1. http/https
  2. UDP
  3. ws

np的tracker是基于http的,这会有性能瓶颈,这里讨论一下其他协议的可行性

@Hyphen-H
Copy link

希望可以同时支持ipv4和v6,这样校园网用户就能在纯v6下免流量费下载了(正常向tracker汇报
另外猫站的这个帖子也值得一看:
/forums.php?action=viewtopic&forumid=25&topicid=8181

@Rhilip
Copy link

Rhilip commented Feb 7, 2023

从nphp的实现来看,基于http的完全没有性能瓶颈。udp会有丢包风险,这对pt来说是不可接受的。ws没试过,但考虑要建立长连接,我认为对服务器性能是个挑战。
#7 的角度来说,如果作者想尽快做个demo出来,那http是最好实现的(前有nphp,后有unit3d做参考)


另外,我觉得就tracker协议来说,应该只的是实现哪些bep特性。而不是指protocol。

@PlexPt
Copy link
Owner Author

PlexPt commented Feb 7, 2023

按照bep15实现了一个

@LWWD
Copy link

LWWD commented May 30, 2023

使用netty http就行了。 UDP不适合做这种场景,WS多用户对服务器性能要求较高

@PlexPt
Copy link
Owner Author

PlexPt commented Jul 2, 2023

暂定http

@PlexPt PlexPt closed this as completed Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants