Skip to content

fix(http1): error when final body chunk is shorter than content-length - #4270

Open
patrick-immometrica wants to merge 1 commit into
hyperium:masterfrom
patrick-immometrica:fix-h1-short-body-content-length
Open

patrick-immometrica wants to merge 1 commit into
hyperium:masterfrom
patrick-immometrica:fix-h1-short-body-content-length

Conversation

@patrick-immometrica

@patrick-immometrica patrick-immometrica commented Nov 14, 2026 •

Copy link
Copy Markdown

A body whose only frame ends the stream goes through write_body_and_end, which ignored a short write and just closed the writer. The client then waited forever for a response. Return the same BodyWriteAborted error that end_body already returns for streamed bodies.

A body whose only frame ends the stream goes through write_body_and_end,
which ignored a short write and just closed the writer. The client then
waited forever for a response. Return the same BodyWriteAborted error
that end_body already returns for streamed bodies.

This branch has not been deployed

No deployments
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