As explained here (#573 (comment)), the current multistream-select handshake doesn't handle the case where the peer is optimistic and also sends the first channel message right after the protocol reply.
Currently there is just a warning, and the trailing bytes after the multistream-select messages are discarded. They should instead be propagated back and handled within the state machine as an incoming message for the next phase after the handshake.
As explained here (#573 (comment)), the current multistream-select handshake doesn't handle the case where the peer is optimistic and also sends the first channel message right after the protocol reply.
Currently there is just a warning, and the trailing bytes after the multistream-select messages are discarded. They should instead be propagated back and handled within the state machine as an incoming message for the next phase after the handshake.