-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
http.server.close() closes idle connections in v20 and v21 #53939
Comments
Can you reproduce on v22? |
Closing idle connection by default is means to exist starting from
It was accidentally back-ported to |
Version
21.7.3
Platform
No response
Subsystem
No response
What steps will reproduce the bug?
No response
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
No response
What do you see instead?
In 18.20.3 release notes, it shows:
"This release fixes a regression introduced in Node.js 18.19.0 where http.server.close() was incorrectly closing idle connections."
This fix was made on this pull request in this commit where
server.closeIdleConnections();
is removed fromhttpServerPreClose
function.This was fixed for next 18.x releases, as can be seen here, but on node 20.x and node 21.x, the regression was also included and has not been removed, as can be seen here.
Additional information
No response
The text was updated successfully, but these errors were encountered: