multiformats / go-multistream

an implementation of the multistream protocol in go
MIT License
41 stars 27 forks source link

handle timeouts using i/o deadlines. #48

Open raulk opened 5 years ago

raulk commented 5 years ago

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 commented 5 years ago

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