chirptune
chirptune
DDeno
Created by chirptune on 9/19/2024 in #help
How to reuse SSL session
In Ruby, you can create an openssl socket, reuse a session from another ssl socket, and then connect like this:
data_ssl_socket = OpenSSL::SSL::SSLSocket.new(data_socket, context)
# data_ssl_socket.sync_close = true
data_ssl_socket.session = ssl_socket.session
data_ssl_socket = OpenSSL::SSL::SSLSocket.new(data_socket, context)
# data_ssl_socket.sync_close = true
data_ssl_socket.session = ssl_socket.session
I have the impression that's not possible in deno right now, am I correct? I found this https://deno.com/blog/v1.7#tls-session-cache but no code showing how to use it.
4 replies