-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bootstrap: initialize http proxy after user module loader setup #58938
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
The externalized undici relies on the user module loader, so in the externalized build, initialization of http proxy which relies on undici needs to be deferred until after the user module loader is initialized.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58938 +/- ##
=======================================
Coverage 90.09% 90.09%
=======================================
Files 640 640
Lines 188462 188476 +14
Branches 36962 36966 +4
=======================================
+ Hits 169786 169808 +22
+ Misses 11404 11385 -19
- Partials 7272 7283 +11
🚀 New features to boost your workflow:
|
Landed in 0534672 |
In this case what happened if a external http(s) loader is registered that need http_proxy to resolve http(s) specifier ? |
As long as the http/https requests happen after the bootstrap completes (for example, only in hooks, not at the top level of the loader code), that shouldn't be a problem. |
okay nice ! |
The externalized undici relies on the user module loader, so in the externalized build, initialization of http proxy which relies on undici needs to be deferred until after the user module loader is initialized. PR-URL: #58938 Refs: #58865 Refs: #57872 Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
The externalized undici relies on the user module loader, so in the externalized build, initialization of http proxy which relies on undici needs to be deferred until after the user module loader is initialized.
Refs: #58865
Refs: #57872