Uh oh!
There was an error while loading. Please reload this page.
net: honor default values in Socket constructor - #19971
Conversation
Is this Line 288 in 5a8fcd0 still needed with this change? |
mscdex
commented
Apr 12, 2018
Can a test be included for this? |
lpinca
commented
Apr 12, 2018
This also changes the default value for constsocket=newnet.Socket(fd);assert(socket.readable);assert(socket.writable); |
santigimeno
commented
Apr 12, 2018
Good catch. I'll remove that line.
Will do
Yes, isn't that what the documentation implies? |
lpinca
commented
Apr 12, 2018
Yes it seems consistent with the docs but not with the code, not sure which one is correct :) |
There was a problem hiding this comment.
Just a thought, but I think it might be more correct to forward these values from stream itself?
4a21f02 to
e4fdba2Comparesantigimeno
commented
Apr 12, 2018
Updated with comments addressed. PTAL. Thanks |
santigimeno
commented
Apr 12, 2018
cjihrig
commented
Apr 13, 2018
CI has a lot of red. |
santigimeno
commented
Apr 13, 2018
Yes, I have to fix the test for Windows. The other failures seem unrelated. |
Specifically `readable` and `writable` that default to `false`. Fixes: libuv/libuv#1794
e4fdba2 to
485bea9Comparesantigimeno
commented
Apr 20, 2018
Added a fix for the test. New CI: https://ci.nodejs.org/job/node-test-pull-request/14400/ |
santigimeno
commented
Apr 20, 2018
CI looks good now. |
lpinca
left a comment
There was a problem hiding this comment.
LGTM. I'm only a little worried about the behavior change described in #19971 (comment).
Should we consider it a bug fix?
apapirovski
commented
Apr 21, 2018
Might as well run CitGM if we have concerns: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1380/ |
Landed in 67e2a15 🎉 |
Specifically `readable` and `writable` that default to `false`. PR-URL: nodejs#19971Fixes: libuv/libuv#1794 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
lpinca
commented
Apr 23, 2018
Are we ok with this being semver-patch? |
Specifically `readable` and `writable` that default to `false`. PR-URL: #19971Fixes: libuv/libuv#1794 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Specifically
readableandwritablethat default tofalse.Fixes: libuv/libuv#1794
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes