These are chat archives for anacrolix/torrent

31st
Jan 2018
Matt Joiner
@anacrolix
Jan 31 2018 09:53
i'm experimenting with a new request concurrency limit
to reduce wastage
Denis
@elgatito
Jan 31 2018 10:06
got better?
it's big now?
Matt Joiner
@anacrolix
Jan 31 2018 12:21
nah it's just always bugged me
i'ts probably been something i've been iterating since i started the client in 2014
i've never found the perfect solution
it comes down to: what to request from peers for a given connection
balance between performance, simplicity, efficiency
Denis
@elgatito
Jan 31 2018 12:30
libtorrent seems to request the least seeded pieces first
Matt Joiner
@anacrolix
Jan 31 2018 12:31
yeah, but conventional torrents don't have readers and readahead. anacrolix/torrent actually does really well at conventional downloading, it's an easy problem
easier*
if you set a file or pieces to normal priority and just wait
it's very very good
Denis
@elgatito
Jan 31 2018 12:31
agree there is no perfect solution as there are different goals, to get readahead or just download as much as possible
Matt Joiner
@anacrolix
Jan 31 2018 12:31
yeah it's very hard
Denis
@elgatito
Jan 31 2018 12:33
I'd possibly rearrange priorities only for PriorityNormal pieces, and they all should be less then any High/Readahead priority pieces
Matt Joiner
@anacrolix
Jan 31 2018 12:33
it sort of works like that
see connection.updatePiecePriority
Denis
@elgatito
Jan 31 2018 12:34
users are mostly issuing missing upload (usually missing)
Matt Joiner
@anacrolix
Jan 31 2018 12:35
they dont seem to upload at all?
i guess the new seeders count will help with that
if it's all seeders well... fine :P
Denis
@elgatito
Jan 31 2018 12:36
it look like it engine is connected to the peer to dwnload pieces and that peer wants some from you - you are uploading, otherwise you just "seed" without actually seed
Matt Joiner
@anacrolix
Jan 31 2018 12:36
i guess you have Seed and the AggressiveUpload stuff set?
Denis
@elgatito
Jan 31 2018 12:37
        Seed:     s.config.SeedTimeLimit > 0,
        NoUpload: s.config.SeedTimeLimit == 0,
not setting disableagressive
how do we know if some peer has the piece we need? we get peer/piece stats from trackers? or asking each peer about their state?
Matt Joiner
@anacrolix
Jan 31 2018 12:40
you have to ask each peer
Denis
@elgatito
Jan 31 2018 12:41
so if we register on dht/tracker then people try to connect and request our state to know if we can help them?
Matt Joiner
@anacrolix
Jan 31 2018 12:43
yep
Denis
@elgatito
Jan 31 2018 12:45
have you checked upnp set up?
Matt Joiner
@anacrolix
Jan 31 2018 12:46
nah i have no devices that respond to it
Denis
@elgatito
Jan 31 2018 12:46
i have tried with gssdp-discover to see local network, but can't see if it works :)
Matt Joiner
@anacrolix
Jan 31 2018 12:46
:P
it currently logs "discovered %d upnp devices"
best to ask someone that gets nonzero message there
Denis
@elgatito
Jan 31 2018 12:46
few people said they checked on router and did not see open port
Matt Joiner
@anacrolix
Jan 31 2018 12:47
hm
i just copied what axet did
Denis
@elgatito
Jan 31 2018 12:47
but it can be anything, no logs, no debug
Matt Joiner
@anacrolix
Jan 31 2018 12:47
i'm not impressed by the syncthing code after looking at it
since it's just a matter of sending an http request to unpn device to open the port
Matt Joiner
@anacrolix
Jan 31 2018 12:50
yeah i wrote an entire upnp thing in about 2012 https://godoc.org/github.com/anacrolix/dms/upnp
maybe i could adapt what jackpal's has to my old upnp framework
since i know that worked ,and he did the wanconnection
Denis
@elgatito
Jan 31 2018 12:55
so in theory if we get an open, proxied port, then we will respond correctly to anyone who want the upload and things should become better?
Matt Joiner
@anacrolix
Jan 31 2018 12:58
yeah maybe that's a good point. maybe people aren't seeing uploads because they're only getting outbound connections
do you dump /debug/vars in your logs?
there's heaps of stuff in there
"acceptTCP": 399565,
"acceptUTP": 604548,
those will tell you if connections are inbound
so will reading it from the connection flags in the client status
-I- would be incoming
Denis
@elgatito
Jan 31 2018 13:06
debug/vars ?
Denis
@elgatito
Jan 31 2018 13:09
interesting
will add in the next version to dump once a minute or so
Denis
@elgatito
Jan 31 2018 20:41
Is there any background fir setting max conn limit to 80?