-
Notifications
You must be signed in to change notification settings - Fork 101
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
Clarify client announce behavior when joining both swarms of a hybrid… #102
base: master
Are you sure you want to change the base?
Clarify client announce behavior when joining both swarms of a hybrid… #102
Conversation
This is not a clarification but newly proposed behavior. And it is not in the compatibility spirit of BEP52. Clients should be able to use existing torrents for pure v1, pure v2 and hybrid swarms, they can only do this by using the existing In practice, to be forward-compatible a client also must announce the new infohash on a hybrid torrent. The only wiggle room would be about whether and when it announces the old infohash. Additional parameters can only serve as hint for bep52-aware trackers at best. |
yes, I agree. This should not be a MUST requirement. One way to achieve fewer announces in a backwards compatible way would be to also define a tracker response indicating that the tracker did also announce the peer against the v2 info-hash, so the peer knows it can omit the separate v2 announce. But without knowing for sure that the |
come to think of it, if the same HTTP connection is used, it's not clear there is really that much value in saving a request. Most likely both requests would fit in a single TCP segment anyway, so from the network's point of view it may be unnecessary complexity to have an |
2cb8874
to
e85b405
Compare
We settled on (b) option from #87 and @arvidn suggested this further improvement regarding sending the |
It's not obvious to me that this additional wording is necessary. Isn't this implied? |
If it was implied then the reason for the discussion that took place in #87 wouldn't exist, no? Besides, stuff like that should always be explicit in documents such as this. |
I'm not sure what you mean. Are you saying that it's not implied?
The risk with stating all consequences explicitly is that you get a lot of noise, and make the document longer, and have more opportunities for bugs, and there will always be something that's implied that's not stated explicitly. Is this stated explicitly in the multi-tracker extension? |
Yes, I'm saying that it is not implied. One of the sentences in my original post in #87 is
Following that sentence I've written the two possible options to which @the8472 said:
So this PR aims to do just that. Maybe the wording needs to be a bit better (I'm not a native English speaker) so any suggestions are welcome.
IIRC, it isn't. But that is completely different (multi tracker vs multiple swarms) and it isn't used nearly as much (at least not by private trackers who are the most concerned about specifying the announce behavior when multiple swarms become a pretty frequent thing). |
good point.
I guess I was focusing on the first sentence, which I think is implied. Not the second though. What do you think of something like:
|
Yes, the first part is implied so the focus of the PR is to specify the second part. Your wording sounds better to me so I'll update the PR tomorrow with it. |
… torrent
As per the discussion in #87 (and partially in #100)