Commit Detail
Commit 663e5cb
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