Skip to content

fix: handle premature closure of compressed requests - #781

Open
Phillip9587 wants to merge 1 commit into
masterfrom
fix/compressed-request-abort
Open

Phillip9587 wants to merge 1 commit into
masterfrom
fix/compressed-request-abort

Conversation

@Phillip9587

Copy link
Copy Markdown
Member

Compressed requests can leave body-parser waiting indefinitely when the client disconnects mid-body. req.pipe() does not propagate premature request closure to the decoder that raw-body reads.

Listen for the request’s close event and notify raw-body when the request closes before its body is fully read. Ignore normal completion so pending decompression can finish, and remove the listener when the decoder closes.

@Phillip9587
Phillip9587 force-pushed the fix/compressed-request-abort branch from 5644b8b to 337fca6 Compare October 23, 2026 22:38
@Phillip9587 Phillip9587 changed the title fix: handle aborted compressed requests fix: handle premature closure of compressed requests Oct 23, 2026
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