Skip to content

Fix stream is unreadable too early (#167) - #353

Open
ErdemRodionovich wants to merge 1 commit into
libp2p:masterfrom
ErdemRodionovich:stream_not_readable_too_early
Open

ErdemRodionovich wants to merge 1 commit into
libp2p:masterfrom
ErdemRodionovich:stream_not_readable_too_early

Conversation

@ErdemRodionovich

Copy link
Copy Markdown

Added flag keepInternalBuffer in YamuxStream::doClose in order to let internal buffer be not cleared in case of connection closed. And added MplexStream::onConnectionClosed() to attempt reading via readTry() in case of connection closed.
Added corresponding tests YamuxStreamIsReadableAfterConnectionClosed and MplexStreamIsReadableAfterConnectionClosed.

Added flag keepInternalBuffer in YamuxStream::doClose in order
to let internal buffer be not cleared in case of connection closed.
And added MplexStream::onConnectionClosed() to attempt reading
via readTry() in case of connection closed.
Added corresponding tests YamuxStreamIsReadableAfterConnectionClosed
and MplexStreamIsReadableAfterConnectionClosed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant