Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
test: add net regression test#32794
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
ronag commented Apr 12, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Apr 12, 2020
ronag commented Apr 12, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
This was fixed through a larger semver-major PR on master. This should not land in 14.x unless the referenced PR is included. |
lpinca commented Apr 12, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
FWIW it is not destroyed before the https://github.com/nodejs/node/blob/v13.12.0/lib/net.js#L629-L638 |
ronag commented Apr 12, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
The observed behaviour for a user of the stream is that it is destroyed before |
lpinca commented Apr 12, 2020
Not if the user uses |
ronag commented Apr 12, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
I think using I don't think |
lpinca commented Apr 12, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
While I partially agree, |
ronag commented Apr 12, 2020
Well, if you are using it you should know what you are doing... same with e.g. I do think we should be more explicit about discouraging these things in the docs and make it clear you need to tread carefully. |
lpinca commented Apr 12, 2020
I don't mind, I just find this commit message incorrect/misleading. Again the socket is not destroyed before the |
ronag commented Apr 12, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
The test tests that it is not destroyed before EDIT: Hm, I guess you are technically right, but it's a bit nit. |
lpinca commented Apr 12, 2020
I suggest to use something like "Ensure that the socket is not destroyed when the 'end' event is emitted" to reflect what the test actually does. |
Ensure that the socket is not destroyed when the 'end' event is emitted. Refs: nodejs#32780 (comment)
ronag commented Apr 12, 2020
Updated |
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Apr 12, 2020 • edited by addaleax
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by addaleax
Uh oh!
There was an error while loading. Please reload this page.
CI: https://ci.nodejs.org/job/node-test-pull-request/30670/ (:yellow_circle:) |
Ensure that the socket is not destroyed when the 'end' event is emitted. Refs: #32780 (comment) PR-URL: #32794 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
ronag commented Apr 14, 2020
Landed in cbe955c |
Ensure that the socket is not destroyed when the 'end' event is emitted
Refs: #32780 (comment)
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes