]> Sergey Matveev's repositories - btrtrc.git/commit
Do webseed request parts sequentially
authorMatt Joiner <anacrolix@gmail.com>
Thu, 2 Dec 2021 02:47:06 +0000 (13:47 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 6 Dec 2021 04:22:00 +0000 (15:22 +1100)
commitc653cf207013e6259a1afcf455cef47f29cea844
treec6eb48a91fa9050b95dbc3d378e7957a009c51ac
parent9bee7c3bc4986b9f9a94eb969db20468c7d9abde
Do webseed request parts sequentially

This means we can treat the number of bytes in the result with enough accuracy to decide if we should count it as a wasted chunk. Also I'm not sure why it was a good idea to do parts of a request in parallel anyway, it could just lead to spikes in outstanding requests to the webseed, rather than sticking to the predictable maxRequests limit.
webseed-peer.go
webseed/client.go