nim-libp2p
nim-libp2p copied to clipboard
Implement multistream optimist selection
Present in go and rust
If you select
a single protocol, you don't have to wait for the peer to respond to send data
If he is compatible, he will ACK and, traffic will start to flow If he is not compatible, the stream / connection will be closed either way
For what it is worth, here is the code path in rust-libp2p:
https://github.com/libp2p/rust-libp2p/blob/eaf3f3a7fb4aba228ebd15366ab79b64cf37832c/misc/multistream-select/src/dialer_select.rs#L207-L216