-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
implement i2p_pex, peer exchange support for i2p torrents #7831
Conversation
@zzzi2p, @anikey-from-i2p, @mpeter50, @Vort, @absolutep, @jiigen, @OvercookedBeef, @ValeZAA, @garret, @absolutep: Can you look this recent @arvidn PR? @arvidn: Thanks for this first PR :) Linked to: |
02a1236
to
21ff764
Compare
thanks for doing this. max_peer_entries=100 is a little much, since it's 32 bytes per, Re: how you store destinations/hashes for peers But I don't recommend you discard the destination and store the nothing else jumped out at me, but I'm not a c++ guy; |
Wouldn't it make sense to have a config option for it, to make the implementation more future proof? I think this development would make I2P an interesting service to look into for more people, and also more visible at all. |
Simplest test which came to mind is to start torrent without tracker and add one peer, which use client with well tested I2P PEX support. libtorrent/examples/client_test.cpp Lines 629 to 630 in aa580c4
However, it looks like this feature is broken for i2p peers. Worth fixing I think. Less reliable test was just adding random popular torrent and waiting until PEX support will appear in UI. Magnet
run.bat
But there was no success with it: if I understand UI correctly, dark blue letter "p" in this case means PEX wasn't used. |
7353b75
to
77a35ff
Compare
I believe this works now, if anyone wants to give it a shot |
I saw white letter "p" in my test with 77a35ff: Also log now contains messages like |
8de14b9
to
ebc13e0
Compare
@arvidn: Good job, thanks! Linked to: Do not stop to add all improvements needed to have a perfect I2P support :) I2P issues search: Can you look for DHT? I2P BitTorrent details: |
first draft. untested.