Jille / rufs

RUFS - share files with your friends
4 stars 0 forks source link

Detect disconnections from DiscoveryService.Connect #29

Closed Jille closed 3 years ago

Jille commented 3 years ago

Because DiscoveryService.Connect is a one-way streaming RPC, gRPC has no way to notify us that the peer disconnected - until we do a write.

That means we don't really detect disconnections until we broadcast a new peer list etc.

This is a likely cause for #28