go-multistream icon indicating copy to clipboard operation
go-multistream copied to clipboard

handle timeouts using i/o deadlines.

Open raulk opened this issue 6 years ago • 1 comments

Both initiator and responder now time out if reads and/or writes are blocked for 30 seconds (default negotiation timeout).

Introduces two tests to validate the new behaviour.

Fixes #47. Addresses https://github.com/filecoin-project/lotus/issues/518.

raulk avatar Nov 01 '19 14:11 raulk

This fails CI because of https://github.com/libp2p/go-libp2p/issues/736.

raulk avatar Nov 01 '19 16:11 raulk