upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/btfrv.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-08-12 16:08:22 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-08-23 04:37:36 +0000
commit14e2d7f9ac83d22ea7231fd9f69b36a204afd721 (patch)
tree0b6640d781450fab0e9455b038b121c4dbcb5d2e /src/btfrv.cpp
parent49167989ad8f39f7d617e2e081b848678465b7ed (diff)
net: time the stall, not the wait, before dropping an unreadable peer
Found auditing the previous commit for the push. Timing from the first rewind would drop a peer whose message is large and merely slow, which would be a fault of our own making rather than one we fixed. Restart the clock whenever the buffer has grown by even one byte since the last look. A transfer still making progress is never dropped however long it takes; only one that has stopped growing while the node goes on expecting more is, which is the actual failure. (cherry picked from commit 5dddb26bae02013ce87719b11953aadf0bfa2594)
Diffstat (limited to 'src/btfrv.cpp')
0 files changed, 0 insertions, 0 deletions