js-libp2p
js-libp2p copied to clipboard
Full stream close guarantee
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