FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

http: remove misleading warning by lpinca · Pull Request #51204 · nodejs/node · GitHub

/ node Public

http: remove misleading warning - #51204

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
lpinca:remove/warning
Dec 21, 2023
Merged

http: remove misleading warning#51204
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
lpinca:remove/warning

Conversation

lpinca commented Dec 18, 2023

Copy link
Copy Markdown
Member

There are cases where the 'clientError' event can be emitted multiple times, even if the socket is correctly destroyed.

Fixes: #51073

There are cases where the `'clientError'` event can be emitted multiple
times, even if the socket is correctly destroyed.

Fixes: nodejs#51073

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net

nodejs-github-bot added http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run. labels Dec 18, 2023
lpinca added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 18, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 18, 2023

Copy link
Copy Markdown
Collaborator

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

Copy link
Copy Markdown
Collaborator

pimterry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

👍

Nice work, thanks @lpinca! I can imagine other solutions to fix this, like batching client errors, but one way or another they'd end up changing more sensitive existing behaviour elsewhere, so just dropping the incorrect warning seems much simpler.

Copy link
Copy Markdown
Collaborator

lpinca added commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. request-ci Add this label to start a Jenkins CI on a PR. labels Dec 19, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 19, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Contributor

Sorry, I don't understand this. If we remove this, we will reopen #43548. Or am I missing anything?

lpinca commented Dec 20, 2023
edited
Loading

Copy link
Copy Markdown
Member Author

If we remove this, we will reopen #43548.

No, the fix for #43548 is still there. We added the warning because we could not reproduce the issue in a legit way. We can now and the warning is misleading.

Copy link
Copy Markdown
Contributor

Oh, I see. Makes sense now. Thanks!

Copy link
Copy Markdown
Collaborator

lpinca added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 21, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 21, 2023
nodejs-github-bot merged commit 30f8ef1 into nodejs:main Dec 21, 2023

Copy link
Copy Markdown
Collaborator

Landed in 30f8ef1

lpinca deleted the remove/warning branch December 21, 2023 20:09
RafaelGSS pushed a commit that referenced this pull request Jan 2, 2024
There are cases where the `'clientError'` event can be emitted multiple
times, even if the socket is correctly destroyed.

Fixes: #51073
PR-URL: #51204
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
RafaelGSS mentioned this pull request Jan 2, 2024
richardlau pushed a commit that referenced this pull request Mar 25, 2024
There are cases where the `'clientError'` event can be emitted multiple
times, even if the socket is correctly destroyed.

Fixes: #51073
PR-URL: #51204
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
richardlau mentioned this pull request Mar 25, 2024

rejetto commented Feb 20, 2025

Copy link
Copy Markdown

this is not present in latest node 18, right?
even tho it has been published after this merge.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTP server can report clientError misuse warning even when socket is destroyed correctly

7 participants


Back | FazBrowse Home | New Git URL