Replies: 0 comments 2 replies
-
Did you get anywhere with this? I am having the same issue. Using a netSocket to connect to a proxy, then passing it to tls.connect(). There should be a way to have the underlying netSocket remain open if tlsSocket drops. I tested, even tlsSocket.end() and tlsSocket.destroy() also close the netSocket. The following statement from the docs is false. "Connection/disconnection/destruction of socket is the user's responsibility" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As per the title, currently closing the TLS socket client also closes the underlying plain socket. This is sometimes unwanted behavior.
I've encountered this problem while translating the following Java code:
Any idea how I could replicate the same behavior? I'm open to using non-public (but still accessible) functions.
Beta Was this translation helpful? Give feedback.
All reactions