This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
TLSSocket.destroy() is not fully closing the socket #9242
Labels
Comments
user447463
changed the title
TLSSocket.destroy() is not fully closing the closing
TLSSocket.destroy() is not fully closing the socket
Feb 18, 2015
/cc @indutny |
In case it is of any help, the issue seems to have started with 0.11.3. |
For cross-reference, the respective bug at io.js |
indutny
added a commit
to indutny/io.js
that referenced
this issue
Feb 19, 2015
`TLSSocket` wraps the original `net.Socket`, but writes/reads to/from `TLSSocket` do not touch the timers of original `net.Socket`. Introduce `socket._parent` property, and iterate through all parents to unref timers and prevent timeout event on original `net.Socket`. Fix: nodejs/node-v0.x-archive#9242
Should be fixed by nodejs/node#891 |
indutny
added a commit
to nodejs/node
that referenced
this issue
Feb 19, 2015
`TLSSocket` wraps the original `net.Socket`, but writes/reads to/from `TLSSocket` do not touch the timers of original `net.Socket`. Introduce `socket._parent` property, and iterate through all parents to unref timers and prevent timeout event on original `net.Socket`. Fix: nodejs/node-v0.x-archive#9242 PR-URL: #891 Reviewed-By: Colin Ihrig <[email protected]>
See nodejs/node@9b6b055 for a fix. |
indutny
added a commit
that referenced
this issue
Feb 19, 2015
`TLSSocket` wraps the original `net.Socket`, but writes/reads to/from `TLSSocket` do not touch the timers of original `net.Socket`. Introduce `socket._parent` property, and iterate through all parents to unref timers and prevent timeout event on original `net.Socket`. Fix: #9242 PR-URL: nodejs/node#891 Reviewed-By: Colin Ihrig <[email protected]>
So has this been resolved or not? This is my code:
I'm using Hercules to test it. If this has been fixed or I'm wrong please tell me. If this is indeed a bug, I'll open a new issue for Node 4.0.0 |
2 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
node 0.12 seems to have introduced a timeout related issue for the TLS package. Closing the TLSSocket is not enough to stop the timeout but an additional TCP socket close is necessary.
Please see the following code sample for a reproducible pattern (0.10 vs. 0.12)
Expected result
Actual result
The text was updated successfully, but these errors were encountered: