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
Implementing latest version of BEP-7 for HTTP requests #1661
Conversation
555f1e7
to
35e2913
Compare
0712a9e
to
776827d
Compare
Seems to be working, but I did not find an UDP tracker implementing BEP-7. |
Rebase? |
@lvella would you be interested in updating this patch? If so, I'd be happy to review / test |
Yes, I will. But I probably will only be able to do it by next week.
|
@Ivella I will be traveling this week, so there may be some lag in code review. Don't worry, this PR hasn't been forgotten again |
Hi @ckerr , I have ported one of the two patches in this PR (the one affecting http announces) to main: I still have to port the patch for udp announces, but that one is purely theoretical, as I never encountered an udp tracker that serves both via IPv4 and IPv6, so I couldn't even test it. Do you think I should include just the http patch in this PR, and leave the upd patch for another PR? |
BTW, do we have the public IPv4 address through which we are reachable? It would be nice to add |
Check
Split it into two, please. |
What do you think of this solution for Curl's version problem? |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
I don't have a "best" answer. But if people are unhappy regarding the number DNS requests, and others don't care, then eventually provide a settings to offer the choice of behaviour to the enduser. |
@Coeur It is now compatible with main, but these issues pointed by the checks were already there. |
Is there any hope of this actually getting accepted? I miss being able to seed. |
This comment was marked as duplicate.
This comment was marked as duplicate.
I don't know. I lost count on how many times I have fixed the conflicts with main. I would like a comment from someone with merge permission before I do it again. |
BTW, should it be me to click "Resolve conversation" on the issues? |
I've mostly left this alone because a previous revision made the "excessive DNS requests" issue worse and TBH I missed the commit that addressed the dns requests. I'm OK with this landing after the |
Hi @lvella, my point is that |
d'oh my apologies. As I went in to add the |
@ckerr Wait! NOOOOO! The curl_version_info is not there yet! It is one commit away! |
@ckerr Done! |
@ckerr New stable please! |
Implements the latest version of BEP-7 on HTTP announces, which solves issue #1659.
DNS cache in libcurl had to be disabled in order to force an IPv4 or IPv6 connection, otherwise it simply uses the cached address, irrespective of the protocol.A fix to the libcurl issue has been merged to master, so disabling the cache is not done for newer versions libcurl.Fixes #1659.