-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
[4.x] http: make socketPath work with no agent #19489
Conversation
Currently `Agent.prototype.createConnection()` is called uncoditionally if the `socketPath` option is used. This throws an error if no agent is used, preventing, for example, the `socketPath` and `createConnection` options to be used together. This commit fixes the issue by falling back to the `createConnection` option or `net.createConnection()`.
The next 4.x release will probably be the final one. It would be nice to include this fix. |
@lpinca the next planned release is a security release that will only include those changes. We can do one more release, but I am genuinely nervous about landing anything... even if it "improves things". Last minute behavior changes, even those that fix broken behavior, have the potential of breaking code in production. I would very much like to avoid a situation where we do a release in the weeks before the EOL that requires us to have to backtrack /cc @nodejs/lts |
It's a very simple fix for a combination of options ( |
I think I agree with @MylesBorins on this one, ideally we'd like to make no changes to 4.x at all at this point, so the bar for "worth adding" is very high. I think the only changes we should be considering are security issues and build/test fixes that we need to get the release out.
For me it's not just the risk, it's that by actively updating the 4.x line at this point we are giving the impression that 4.x is still updated so it's still okay to use. If people are hitting bugs, they should update to 6.x. |
Well by cutting a new 4.x release we are actively updating it. No new features ok, but why not bug fixes, it's still officially supported. |
@lpinca the release coming tuesday will be a security release. For LTS releases we do not include anything in the release aside from the security patch. So this would involve doing another v4.x release, which would likely have to be the week before going EOL if we wanted to do an R.C. While it is a bug fix, it still can be a change in behavior. For an EOL branch I would rather advise people to upgrade for the fix. Is this bugfix considered critical? Generally we only do releases for critical bug fixes in Maintenance branches |
It's officially in maintenance, which means we support it but you should be upgrading ASAP. If this has been an issue for the life of 4.x, then I would say that it's reasonable to expect anyone who wants this fix to be upgrading to 6.x. |
I doubt anyone is relying on this behavior when
It's not a critical bug fix, as said it seems no one but I'm going to close this and resort to horrible hacks to fix the issue in |
Which is also affected by the same bug, so they should jump from 4.x to 8.x |
6.x can still be fixed without an issue
… On Mar 22, 2018, at 4:20 PM, Luigi Pinca ***@***.***> wrote:
I would say that it's reasonable to expect anyone who wants this fix to be upgrading to 6.x.
Which is also affected by the same bug, so they should jump from 4.x to 8.x
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#19489 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAecVyftm_cF3_9C3PnTQdZe6Ryy2jPzks5tg89QgaJpZM4SyYMq>.
|
This is a backport of #19425.
Currently
Agent.prototype.createConnection()
is called uncoditionallyif the
socketPath
option is used. This throws an error if no agent isused, preventing, for example, the
socketPath
andcreateConnection
options to be used together.
This commit fixes the issue by falling back to the
createConnection
option or
net.createConnection()
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes