Skip to main content

validate_max_connection_attempts

Function validate_max_connection_attempts 

Source
pub fn validate_max_connection_attempts(
    attempts: u32,
) -> Result<(), &'static str>
Expand description

Validate a max_connection_attempts value, global or per cluster: at least one attempt, at most MAX_CONNECTION_ATTEMPTS_UPPER_BOUND. Called at config load, on every AddCluster and on SetMaxConnectionAttempts.