magic-wormhole.rs icon indicating copy to clipboard operation
magic-wormhole.rs copied to clipboard

Detect broken TCP connection to peer

Open felinira opened this issue 2 years ago • 1 comments

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

Reproduction steps:

  • sending file from wormhole-rs
  • receiving from wormhole-python
  • aborting the wormhole-python transfer
  • wormhole-rs will stall

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.

felinira avatar Jul 24 '22 15:07 felinira

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?).

piegamesde avatar Sep 05 '22 16:09 piegamesde