summaryrefslogtreecommitdiffstats
path: root/src/transport
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-22 21:55:36 +0200
committertv <tv@krebsco.de>2026-10-22 21:55:36 +0200
commit121174a20618d88174784c5b2f1d905100f06223 (patch)
tree9b0af3776186a92e6618e286fd2628c4551393e0 /src/transport
parentd05e3b01af441ccf975152995701e9e29606bd11 (diff)
don't resend sync messages to up-to-date peers
When an sync messages arrives and automerge has nothing to say about it, then no reply is generated. With c9279e4 it was assumed that every sync message gets an answer, so missing replies caused unnecessary resends. Now a reply is only awaited if the peer's last reported heads differ from ours. If the peer's heads become equal through a third peer without replying, the waiting will also abort if a ping or pong showss the same heads digest on both sides.
Diffstat (limited to 'src/transport')
0 files changed, 0 insertions, 0 deletions