You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
resetAndDestroy can not be called on tlssocket? #49484
TypeError [ERR_INVALID_HANDLE_TYPE]: This handle type cannot be sent
at new NodeError (node:internal/errors:393:5)
at Socket.resetAndDestroy (node:net:700:13)
at TLSSocket.<anonymous> (/path/to/test.js)
at TLSSocket.emit (node:events:513:28)
at TLSSocket.onConnectSecure (node:_tls_wrap:1576:10)
at TLSSocket.emit (node:events:513:28)
at TLSSocket._finishInit (node:_tls_wrap:952:8)
at ssl.onhandshakedone (node:_tls_wrap:733:12)
Activity
pinko-fowle commentedon May 12, 2023
Facing the same challenge, I rearchitected my code some to create the socket;
In general it'd be Pretty Cool IMHO if the underlying socket were acessible.
I thought for a second maybe
tlssocket._handle._parentwas gonna be the TCP socket, but it's some otherTCPobject instead.preveen-stack commentedon Aug 25, 2023
@nodejs/net PTAL
mcollina commentedon Sep 4, 2023
This looks like a bug in Node.js.
this._handlein that case is aTLSWrap, which looks correct. Therefore I'm not sure how that could work at all.mcollina commentedon Sep 4, 2023
cc @nodejs/crypto as well
nromito commentedon May 14, 2024
Running into this bug as well