-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix(ext/node): support createConnection option in node:http.request() #25470
base: main
Are you sure you want to change the base?
Conversation
c807b0e
to
abda518
Compare
89a4de0
to
e98525c
Compare
aedab15
to
9c1b39b
Compare
bbd15fb
to
2f9cdaa
Compare
Yoshiya Hinosawa <stibium121@gmail.com>
Instead use workaround reading callstack in `connect()` call and pause the socket when it's from @npmcli/agent. This prevents the undesirable initial read of the socket.
Signed-off-by: Satya Rohith <me@satyarohith.com>
This reverts commit 7cf82b7.
Signed-off-by: Satya Rohith <me@satyarohith.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass review. Amazing work 🚀
where | ||
P: crate::NodePermissions + 'static, | ||
{ | ||
let client = if let Some(rid) = client_rid { | ||
let r = state | ||
let (_handle, mut sender) = if encrypted { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not confident we should forget the handle to the spawned task - the errors raised from the task will not be handled and they should probably be piped back. I can't think of a particular scenario at the moment though
tests/unit_node/http_test.ts
Outdated
// TODO(kt3k): This should be "localhost" when we implemented happy-eyeballs for node:net | ||
const request = http.request("http://127.0.0.1:5929/"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will all these changes cause regressions in already working libraries? Should we implement happy-eyeballs first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we implement happy-eyeballs first?
I guess that is safer.
Can we get this merged asap, it fixes vital issues with many libraries! |
|
Work in progress. Feature works but breaks existing tests.
Closes #19507