These are chat archives for anacrolix/torrent

7th
Nov 2018
Matt Joiner
@anacrolix
Nov 07 2018 00:13 UTC
Disabling utp should no longer disable DHT as of a recent fix
How are you configuring go proxy for udp packets? I"m not familiar with that
Denis
@elgatito
Nov 07 2018 08:48 UTC
I dont like how udp is done with proxy, it is not going where it should do, and I dont see how it can be done inside of socjet.DialTimeout
I'd disable udp if proxy is needed or return nil from dial() for udp socket
Coz now we pass connections without proxy, which is bad, better to leave tcp for proxy, until we get a better option
Matt Joiner
@anacrolix
Nov 07 2018 10:02 UTC
@elgatito I didn't even notice, it would appear that if proxy is on, utp won't work, as a system proxy dialer is returned, it wouldn't know about utp?
you could verify this by disabling tcp, and enabling proxy
Matt Joiner
@anacrolix
Nov 07 2018 10:25 UTC
if you can find something that supports udp proxying, i can wire it into utp easily enough. i can't find anything good tho, and i don't see how to get the common socks5 proxy libraries to do udp in go
Denis
@elgatito
Nov 07 2018 16:50 UTC
@anacrolix it would work perfectly if we'd be a client-only library and we try to remote to remote udp host. then you'd make a connection to socks5 proxy (even with tcp) and send a request to connect to udp host and it's performed by proxy and so on
once you do real dial() to udp host - it should be performed by a proxy.Direct which is a dialer from proxy, not from local host
Denis
@elgatito
Nov 07 2018 17:46 UTC
@anacrolix trying the last commit from torrent/dht. Setting DisableUTP: true but when starting a torrent I see thousands of connections
Denis
@elgatito
Nov 07 2018 20:26 UTC
Added comments to dht issue
Without dht there not so many connections, but without dht it takes too long to get proper speeds
Imho, perfectly, it would be dht not connecting with udp to peers, but connecting to udp trackers
To collect tcp peers. If i understand - dht is collecting peers, trying to connect to them with udp and give the list back to the library which tries to connect with different protocols?