Skip to content

fix(listener): In Node.js v24, some response bodies are not read to the end until the next task queue. #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2025

Conversation

usualoma
Copy link
Member

@usualoma usualoma commented Jul 29, 2025

Fixes #264

I considered making the following additional commit, but since it would change the behavior a bit and I am concerned about the performance impact (and, in fact, the need to deal with more case-sensitive parts), I would like to complete the fix with only the first commit and not add anything in particular.

usualoma/node-server@fix-wait-next-task-node24...usualoma:node-server:fix-wait-next-task-node24-2

@usualoma usualoma changed the title fix(listener): In Node.js v24, some response bodies are not read to the end until the next task queue. fix(listener): Improve handling of response body Jul 30, 2025
@usualoma usualoma changed the title fix(listener): Improve handling of response body fix(listener): In Node.js v24, some response bodies are not read to the end until the next task queue. Jul 30, 2025
@usualoma usualoma force-pushed the fix-wait-next-task-node24 branch from 16d1029 to 98f2792 Compare July 30, 2025 23:32
@usualoma usualoma marked this pull request as ready for review July 30, 2025 23:45
@usualoma
Copy link
Member Author

Hi @yusukebe.

The content is still in the first version. Please review with this.

Copy link
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
Member

@usualoma

Looks good to me. I'll merge and release a new version. Thank you!

but since it would change the behavior a bit and I am concerned about the performance impact (and, in fact, the need to deal with more case-sensitive parts), I would like to complete the fix with only the first commit and not add anything in particular.

Agree!

@yusukebe yusukebe merged commit 03001fc into honojs:main Jul 31, 2025
10 checks passed
@usualoma usualoma deleted the fix-wait-next-task-node24 branch August 2, 2025 00:06
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.

server.test.ts fails on Node.js v24
2 participants