-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
http,https: fix double ERR_PROXY_TUNNEL emission #60699
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
Conversation
|
Review requested:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #60699 +/- ##
==========================================
- Coverage 88.54% 88.54% -0.01%
==========================================
Files 703 703
Lines 208220 208220
Branches 40137 40145 +8
==========================================
- Hits 184374 184360 -14
+ Misses 15861 15850 -11
- Partials 7985 8010 +25
🚀 New features to boost your workflow:
|
|
Landed in 2e944d7 |
|
Thank you for the quick fix @islandryu ! |
|
I think it should land in 24.12! |
|
Hi @islandryu, It looks like this PR didn’t make it into the 24.12 release. Do you know if there are plans to backport it anytime soon? |
**Problem** Since enabling Node proxying, we’ve encountered a Node.js bug that causes the application to crash when an HTTP request is made to an invalid discovery URL. See the Node.js PR: nodejs/node#60699 To work around this issue and preserve the previous behavior, we restored the `global-agent` library to prevent the application from crashing. **Proposal** Remove the usage of `global-agent`. **Prerequisites** * Use a patched version of Node.js once it becomes available. * Restore the previous environment variables in all environments (see: proconnect-gouv/infra-legacy#120).
|
Sorry for the confusion. According to the backporting guidelines, this non-breaking change first lands in the latest major (v25.x), and is then gradually backported to earlier release lines after it has been in the current major for at least two weeks. |
Fixes: #60697
Like the issue reporter, I think proxy-related errors should be handled only by the proxy logic.
Otherwise, the same root cause can lead to duplicate errors.
However, there may be cases where an error should also be emitted from within onSocket that I might be overlooking.