Skip to content
Commit Detail

Commit 663e5cb

Author
Rachel Chen <rachel@chens.email> 2026-10-24 13:48:19 -0700
Parents
f0215e3
Tree
83fd7e1
overlay: serialize competing peer negotiations

Simultaneous dials can let peers publish different winners and close each
other's chosen connection. Serialize negotiations at one endpoint per peer:
the greater advertised address for Chord, and the server for client links.

Use short-lived typed skipmap gates without holding cache locks over
network I/O. Recheck the cached connection before publication or reuse,
and discard known-closed entries through the existing reaper.

Keep the wire format compatible with older peers. During a rolling upgrade,
the race can remain when the legacy endpoint is the chosen arbiter.

Files changed

5 files changed+1 added~4 modified