]> Sergey Matveev's repositories - btrtrc.git/commit
Only steal an odd request if the stealer more recently received a chunk
authorMatt Joiner <anacrolix@gmail.com>
Tue, 7 Dec 2021 03:19:44 +0000 (14:19 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 12 Dec 2021 07:35:01 +0000 (18:35 +1100)
commit8c9a308c9afb9de13a7374cb9a64332e87f5cc66
tree735160f08c4ef3a121d960157310fac281ec7537
parent7de7b986c9b0201ec09d629461951cfcd6bbc044
Only steal an odd request if the stealer more recently received a chunk

This helps break the stealing cycle during endgame, and lets us trickle the request to the peer conn with the best record. It might not be sufficient but works nice in testing so far.
requesting.go