Constant massa_bootstrap::bindings::server::MAX_CONCURRENT_ERROR_SENDS

source ยท
const MAX_CONCURRENT_ERROR_SENDS: usize = 32;
Expand description

Maximum number of refusal threads running concurrently.

Every refused connection is told why before being closed, and that send has to happen off the bootstrap main loop so a slow client cannot stall it. A connection flood produces refusals as fast as the listener can accept, so the helper threads are capped: past the cap the socket is simply closed, which is what the client would observe on a timed-out error send anyway.