struct

HTTP2::Client::PoolConfiguration

Inherits Struct < Value < Object

Resource and retention policy for an origin-bound connection pool.

The pool grows lazily. max_connections bounds eligible plus dialing connections; nil removes that hard bound. Idle and retired limits still apply in nil mode. idle_timeout controls connection retention and is distinct from Timeouts#idle, which applies to response operations.

Constructors

new(max_connections : Int32 | Nil = 4, max_idle_connections : Int32 = 2, idle_timeout : Time::Span | Nil = 90.seconds, max_retired_connections : Int32 = 4)
Source

Instance methods

idle_timeout
Source
max_connections
Source
max_idle_connections
Source
max_retired_connections
Source