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

Implement multistream optimist selection

Open Menduist opened this issue 1 year ago • 1 comments

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

Menduist avatar Jul 26 '22 14:07 Menduist

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

mxinden avatar Jul 29 '22 05:07 mxinden