End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLSocket#session
ssl.session → aSession
ext/openssl/lib/openssl/ssl.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/openssl/lib/openssl/ssl.rb, line 411
def session
SSL::Session.new(self)
rescue SSL::Session::SessionError
nil
end
Returns the SSLSession object currently used, or nil if the session is not established.
See also
#session=
#post_connection_check
#pending
#session_get_cb
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1