Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upnet: check for close on stream, not parent #25026
Conversation
nodejs-github-bot
added
the
net
label
Dec 13, 2018
| @@ -371,8 +371,8 @@ Socket.prototype._final = function(cb) { | |||
| }; | |||
|
|
|||
|
|
|||
| function afterShutdown(status, handle) { | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
davedoesdev
Dec 14, 2018
Author
Contributor
It comes from here: https://github.com/nodejs/node/blob/v11.4.0/src/stream_base.cc#L383
This in turn is set by https://github.com/nodejs/node/blob/v11.4.0/src/stream_base-inl.h#L86
which is called by https://github.com/nodejs/node/blob/v11.4.0/src/tls_wrap.cc#L73
TLSWrap's stream is the external stream from here: https://github.com/nodejs/node/blob/v11.4.0/lib/_tls_wrap.js#L423
which is the unencrypted socket passed into the constructor: https://github.com/nodejs/node/blob/v11.4.0/lib/_tls_wrap.js#311
In summary, it gets the underlying socket's stream rather than the encrypted stream (TLSSocket). Node stream operations appear to be performed on TLSSocket only.
This comment has been minimized.
This comment has been minimized.
lpinca
added
the
tls
label
Dec 14, 2018
This comment has been minimized.
This comment has been minimized.
Trott
added
the
author ready
label
Dec 14, 2018
addaleax
added this to To do
in StreamBase refactor
via automation
Dec 15, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Re-run of CITGM: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1694/ |
This comment has been minimized.
This comment has been minimized.
|
Do I need to do anything about the CITGM? They look like compile failures. |
This comment has been minimized.
This comment has been minimized.
|
Landed in 86e2ec4. |
davedoesdev commentedDec 13, 2018
•
edited
afterShutdownwas checking parent stream rather than TLS streamFixes #24984
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes