Skip to content

fix: request draining for early 413 responses#329

Merged
yusukebe merged 5 commits intomainfrom
fix-connect-error
Mar 30, 2026
Merged

fix: request draining for early 413 responses#329
yusukebe merged 5 commits intomainfrom
fix-connect-error

Conversation

@usualoma
Copy link
Copy Markdown
Member

fixes #327

@usualoma
Copy link
Copy Markdown
Member Author

Hi @yusukebe,

I believe this change will resolve the issue where the connection is lost before the 413 response is sent.
While it’s quite difficult to reproduce this issue in a production environment, we were able to reproduce it in the unit tests added in this PR, and the fix has been verified.

Since the changes are limited in scope, I don’t believe they will affect responses to normal requests.

Could you please review this?

@yusukebe
Copy link
Copy Markdown
Member

@usualoma Okay! I'll check it later.

@usualoma usualoma force-pushed the fix-connect-error branch 3 times, most recently from cf51c02 to 3fe7cae Compare March 30, 2026 02:35
@usualoma usualoma force-pushed the fix-connect-error branch from 3fe7cae to beabf24 Compare March 30, 2026 02:38
Copy link
Copy Markdown
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe
Copy link
Copy Markdown
Member

@usualoma (and @hanool!) Thank you!

@yusukebe yusukebe merged commit 70250f7 into main Mar 30, 2026
5 checks passed
@yusukebe yusukebe deleted the fix-connect-error branch March 30, 2026 08:27
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.

hono/body-limit middleware fails to return response if file is too large.

2 participants