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.