Closed driftluo closed 3 years ago
start_send
flush
codec write buffer left:
https://github.com/nervosnetwork/tentacle/blob/fix-message-delay/tentacle/src/substream.rs#L427
yamux read buffer left:
https://github.com/nervosnetwork/tentacle/blob/fix-message-delay/yamux/src/stream.rs#L302
Add some test cases?
There have been tests, and occasionally failed, but did not pay attention to it, thought it was a problem caused by poor ci machine
start_send
just set data to buffer,flush
will try to write data to inner iocodec write buffer left:
https://github.com/nervosnetwork/tentacle/blob/fix-message-delay/tentacle/src/substream.rs#L427
yamux read buffer left:
https://github.com/nervosnetwork/tentacle/blob/fix-message-delay/yamux/src/stream.rs#L302