Skip to content

fix(http1): send error when dispatcher is dropped mid-body (#3995)#4016

Closed
Barre wants to merge 2 commits into
hyperium:masterfrom
Barre:fix/dispatcher-drop-incomplete-body
Closed

fix(http1): send error when dispatcher is dropped mid-body (#3995)#4016
Barre wants to merge 2 commits into
hyperium:masterfrom
Barre:fix/dispatcher-drop-incomplete-body

Conversation

@Barre

@Barre Barre commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Wrap body_tx in a SenderDropGuard that sends an IncompleteMessage error if the Dispatcher future is dropped while still owning a body Sender, preventing silent data truncation.

Barre added 2 commits February 5, 2026 12:57
…3995)

Wrap body_tx in a SenderDropGuard that sends an IncompleteMessage
error if the Dispatcher future is dropped while still owning a body
Sender, preventing silent data truncation.
@seanmonstar

Copy link
Copy Markdown
Member

This looks awesome! Would you be up for adding an integration test (client or server) to exercise this? If not that's fine, I can look at adding one.

seanmonstar added a commit that referenced this pull request May 12, 2026
Wrap body_tx in a SenderDropGuard that sends an IncompleteMessage
error if the Dispatcher future is dropped while still owning a body
Sender, preventing silent data truncation.

Closes #3995
Closes #4016

Co-authored-by: Pierre Barre <pierre@barre.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants