magic-wormhole / magic-wormhole.rs

Rust implementation of Magic Wormhole, with new features and enhancements
European Union Public License 1.2
648 stars 72 forks source link

Detect broken TCP connection to peer #166

Closed felinira closed 1 year ago

felinira commented 2 years ago

This is related to #165 but a bit of a different take on the issue.

Reproduction steps:

Wormhole-rs should probably detect (maybe after some timeout?) that the other peer is not reachable anymore and throw an error. At least in my experience this doesn't seem to be the case.

piegamesde commented 1 year ago

I'd have to test this, but probably this is already happening except that the timeouts are way too high (TCP has a default of 2h or something on most Linuxes?).