Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLSocket#session
() -> ::OpenSSL::SSL::Session?
ssl.session → aSession
ext/openssl/lib/openssl/ssl.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/ext/openssl/lib/openssl/ssl.rb, line 455
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.3 · 3.2 · 3.1 · 3.0