Skip to content
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

[v18.x] http: remove closeIdleConnections function while calling server close #52334

Closed
wants to merge 1 commit into from

Conversation

kumarrishav
Copy link
Contributor

@kumarrishav kumarrishav commented Apr 2, 2024

Correcting the #50194 backporting mistake. server.closeIdleConnections shouldn't be called while server.close in node v18. This behavior is for node v19 and above.

fixes: #52330, #51677,

As discussed here: #48383 (comment)

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run. v18.x Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch. labels Apr 2, 2024
@richardlau
Copy link
Member

Do the server.closeIdleConnections calls deleted from the tests in #50194 need to be put back?

@richardlau richardlau changed the title http: remove closeIdleConnections function while calling server close [v18.x] http: remove closeIdleConnections function while calling server close Apr 2, 2024
@Linkgoron
Copy link
Member

Linkgoron commented Apr 2, 2024

Do the server.closeIdleConnections calls deleted from the tests in #50194 need to be put back?

Yes, I believe that the those two tests should be reverted as well.

Correcting the nodejs#50194 backporting mistake.
closeIdleConnections shouldn't be called while server.close in node v18.
This behavior is for node v19 and above.

fixes: nodejs#52330, nodejs#51677,
@kumarrishav
Copy link
Contributor Author

previous PR got messed up.

@richardlau @Linkgoron opened a new PR #52336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run. v18.x Issues that can be reproduced on v18.x or PRs targeting the v18.x-staging branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants