Use of 'resumeSession' event for node'

2019-08-28 00:53发布

问题:

Node's TLS module provides a resumeSession event for resuming an earlier session. Can someone show me a sample code as to how to initiate the steps on the client side?

回答1:

If I understand your question correctly, you are asking how to resume a TLS session on the client-side with tls.connect(options, [callback]). To make it short: You can't. You'd need to be able to send the session ID of the previous session. This is currently not implemented in Node's API.

To be a bit more sophisticated: You could.

Maybe you'd like to open an issue.