js-libp2p icon indicating copy to clipboard operation
js-libp2p copied to clipboard

Full stream close guarantee

Open vasco-santos opened this issue 5 years ago • 0 comments

js-libp2p should have an utility logic regarding full stream close, where we wait for an EOF and then reset the stream if it does not close quickly enough.

Some inspiration: https://github.com/libp2p/go-libp2p-core/blob/master/helpers/stream.go#L25-L56

vasco-santos avatar Jun 04 '20 08:06 vasco-santos