Skip to content

fix(listener): do not send a complete response when the body fails during the early read - #420

Merged
yusukebe merged 1 commit into
mainfrom
fix/early-read-body-error
Nov 12, 2026
Merged

yusukebe merged 1 commit into
mainfrom
fix/early-read-body-error

Conversation

@yusukebe

Copy link
Copy Markdown
Member

The early read in responseViaResponseObject caught a body stream error and treated it as the end of the body, so the client got a complete 200 with an empty or truncated body. Let the error propagate to the existing handleResponseError path, which returns a 500.

Fixes #413. Supersedes #414 by @sarankumar1325 and #415 by @eknathdj.

…ring the early read

Co-authored-by: sarankumar1325 <120080287+sarankumar1325@users.noreply.github.com>
@yusukebe
yusukebe merged commit 3463817 into main Nov 12, 2026
6 checks passed
@yusukebe
yusukebe deleted the fix/early-read-body-error branch November 12, 2026 12:15
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.

A body failing before its first chunk is sent as a complete, empty 200 when overrideGlobalObjects is false

1 participant