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 <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
|
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