End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::Session#timeout
session.timeout → Integer
ext/openssl/ossl_ssl_session.c
View on GitHub ↗
static VALUE
ossl_ssl_session_get_timeout(VALUE self)
{
SSL_SESSION *ctx;
long t;
GetSSLSession(self, ctx);
t = SSL_SESSION_get_timeout(ctx);
return LONG2NUM(t);
}
Returns the timeout value set for the session, in seconds from the established time.