pub fn max_concurrent_ssl_accept(num: usize)Expand description
Sets the per-worker soft limit on concurrent TLS handshakes.
TLS acceptors apply readiness backpressure when this limit is reached. Readiness does not reserve a slot: independent listener or service pipelines with cached readiness can still start handshakes and exceed the limit. This controls handshake load but is not a strict admission limit.
The counter is shared by all TLS acceptors constructed on the same thread. This call updates the current thread’s counter and the initial limit for threads whose counters have not yet been initialized. It does not update counters already initialized on other threads; configure the limit before starting workers, or update each existing worker separately.
The default is 256. A limit of zero keeps acceptor readiness pending; it does not mean unlimited capacity. Direct handshake functions do not acquire slots.