class Puma::MiniSSL::Context
def reuse=(reuse_str)
* ',t' - where t is an integer strings for timeout.
* 's' - where s is an integer strings for size.
* 's,t' - where s and t are integer strings, for size and timeout.
20k and default timeout of 300 seconds.
* 'dflt' - sets session reuse on, with OpenSSL default cache size of
in case reuse 'on' is made the default in future Puma versions.
* 'off' - matches the behavior of Puma 5.6 and earlier. This is included
Controls session reuse. Allowed values are as follows:
def reuse=(reuse_str) case reuse_str when 'off' @reuse = nil when 'dflt' @reuse = true when /\A\d+\z/ @reuse = true @reuse_cache_size = reuse_str.to_i when /\A\d+,\d+\z/ @reuse = true size, time = reuse_str.split ',' @reuse_cache_size = size.to_i @reuse_timeout = time.to_i when /\A,\d+\z/ @reuse = true @reuse_timeout = reuse_str.delete(',').to_i end end