Skip to content

Fix spurious parse failures (Error::IncompleteStream)#70

Open
avl wants to merge 1 commit into
rwf2:masterfrom
avl:fix_spurious_parse_error
Open

Fix spurious parse failures (Error::IncompleteStream)#70
avl wants to merge 1 commit into
rwf2:masterfrom
avl:fix_spurious_parse_error

Conversation

@avl

@avl avl commented Jun 18, 2026

Copy link
Copy Markdown

We have a stress test CI run, using multer, that fails spuriously (1 every ~100 runs) with multithreaded tokio runtimes.

This patch fixes it.

The issue is that if the call to state.buffer.poll_stream(cx)?; drains the full stream to completion, the buffer content is not considered anymore, as .eof is set because the underlying stream ended, not that the buffer is empty.

Credit to @wngr for finding this issue.

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.

2 participants