Conversation
2f266db to
d676912
Compare
|
Is it non-trivial to write a reliable test for this? |
|
I do not see what is the bug that you are trying to fix. Essentially, I do not know what behavior you would like to change. Neither this PR or #27875 contain an understandable example. |
|
I can't explain it any better than stated in the issue and my previous comment. |
d676912 to
f04e167
Compare
|
I've updated the PR. I believe the current behavior is as intended and it's just the description that needs a slight modification. The method could also possibly have a better name but I dare not modify it... |
lib/_http_client.js
Outdated
There was a problem hiding this comment.
You might want to expand this a bit more. What does it mean for the socket to be assigned?
There was a problem hiding this comment.
Yes, but why? Sockets are assigned to a request when they are available in the agent.
There was a problem hiding this comment.
expanded to follow the description from https://nodejs.org/api/http.html#http_event_socket
f04e167 to
2fd58d5
Compare
|
Landed in c6f545a |
PR-URL: nodejs#27876 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
PR-URL: #27876 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Fixes #27875. Fix description to actual intended and current behaviour.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes