bootstrap: initialize http proxy after user module loader setup#58938
Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom Jul 5, 2025
Merged
bootstrap: initialize http proxy after user module loader setup#58938nodejs-github-bot merged 1 commit intonodejs:mainfrom
nodejs-github-bot merged 1 commit intonodejs:mainfrom
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.
juanarbol
approved these changes
Jul 3, 2025
Codecov Report✅ All 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:
|
targos
approved these changes
Jul 3, 2025
richardlau
approved these changes
Jul 3, 2025
Collaborator
Collaborator
Collaborator
atlowChemi
approved these changes
Jul 4, 2025
legendecas
approved these changes
Jul 4, 2025
lpinca
approved these changes
Jul 4, 2025
Collaborator
|
Landed in 0534672 |
Member
|
In this case what happened if a external http(s) loader is registered that need http_proxy to resolve http(s) specifier ? |
Member
Author
|
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. |
Member
|
okay nice ! |
RafaelGSS
pushed a commit
that referenced
this pull request
Jul 8, 2025
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 <soyjuanarbol@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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