radicle-dev / radicle-link

The second iteration of the Radicle code collaboration protocol.
Other
421 stars 39 forks source link

net: send disconnect on unsolicited broadcast #656

Closed kim closed 3 years ago

kim commented 3 years ago

Another oversight when switching to unidirectional streams: the unsolicited state occurs when partial view states diverge, but the remote end will never know because closing the stream has no effect anymore. Thus, send a DISCONNECT message in this case to sync states.

Signed-off-by: Kim Altintop kim@monadic.xyz