]> Sergey Matveev's repositories - btrtrc.git/commit
Don't delete requests until after they're written to disk
authorMatt Joiner <anacrolix@gmail.com>
Fri, 30 Oct 2020 01:19:53 +0000 (12:19 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 30 Oct 2020 01:19:53 +0000 (12:19 +1100)
commitc28e9aaeae2ac16be0809efe6a7fd833ad317c15
treec82403669cd2ce0e8ff96f01f5bb1c9e8e655b60
parentfc039262d9f19014fd3a788718011ed6a32f804d
Don't delete requests until after they're written to disk

This prevents too many pending writes building up. Webseed peers re-request synchronously, and the writes are done asynchronously, so they download too quickly and there was no backpressure. The backpressure now is provided by the upper limit on outstanding requests per connection.
peerconn.go