]> Sergey Matveev's repositories - btrtrc.git/commit
Add low requests check
authorMatt Joiner <anacrolix@gmail.com>
Wed, 20 Oct 2021 23:48:43 +0000 (10:48 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 20 Oct 2021 23:48:43 +0000 (10:48 +1100)
commitff3c186396fd0702db915eadcb39a127050c75bd
tree6bf47138a899a23c4f560ccf7ad135dc592dfd1c
parent8eec0b665eaa9bb7bcd7e17aa4982cce7b2ab7e5
Add low requests check

This is an optimization for webseeds, which have 10 synchronous request routines, and if the request count dips below 10, some sit idle. There is probably something similar to be done with PeerConns, which won't update until there are zero requests, but there there is a timer to refresh updates, and the queues are very long (typically 512-2048).
client.go
peer-impl.go
peerconn.go
torrent.go
webseed-peer.go