creativeid00

Results 2 comments of creativeid00

I would say that it is more like the stream acceptance callback is called too late. I got the same issue during bitswap message receiving from a remote go-ipfs peer....

Detailed investigation has shown that [YamuxStream::doRead](https://github.com/libp2p/cpp-libp2p/blob/91d58f28bb8cbce06fd717082fa2b4274a33ae07/src/muxer/yamux/yamux_stream.cpp#L414) returns corresponding error https://github.com/libp2p/cpp-libp2p/blob/91d58f28bb8cbce06fd717082fa2b4274a33ae07/src/muxer/yamux/yamux_stream.cpp#L447 only when no pending data is available in the internal_read_buffer_. https://github.com/libp2p/cpp-libp2p/blob/91d58f28bb8cbce06fd717082fa2b4274a33ae07/src/muxer/yamux/yamux_stream.cpp#L425 I'm not sure what is a semantics of [YamuxStream::isClosedForRead](https://github.com/libp2p/cpp-libp2p/blob/91d58f28bb8cbce06fd717082fa2b4274a33ae07/src/muxer/yamux/yamux_stream.cpp#L133)...