Method: OpenSSL::SSL::Session#timeout=
- Defined in:
- ossl_ssl_session.c
#timeout=(integer) ⇒ Object
Sets how long until the session expires in seconds.
199 200 201 202 203 204 205 206 207 208 |
# File 'ossl_ssl_session.c', line 199
static VALUE ossl_ssl_session_set_timeout(VALUE self, VALUE time_v)
{
SSL_SESSION *ctx;
long t;
GetSSLSession(self, ctx);
t = NUM2LONG(time_v);
SSL_SESSION_set_timeout(ctx, t);
return ossl_ssl_session_get_timeout(self);
}
|