-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
test: add net regression test #32794
Conversation
This was fixed through a larger semver-major PR on master. This should not land in 14.x unless the referenced PR is included. |
FWIW it is not destroyed before the https://github.com/nodejs/node/blob/v13.12.0/lib/net.js#L629-L638 |
The observed behaviour for a user of the stream is that it is destroyed before |
Not if the user uses |
I think using I don't think |
While I partially agree, |
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. |
I don't mind, I just find this commit message incorrect/misleading. Again the socket is not destroyed before the |
The test tests that it is not destroyed before EDIT: Hm, I guess you are technically right, but it's a bit nit. |
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)
Updated |
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]>
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