Use of 'resumeSession' event for node'

2019-08-28 01:16发布

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条回答
家丑人穷心不美
2楼-- · 2019-08-28 01:21

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.

查看更多
登录 后发表回答