module ProbeConcurrency

Overview

Max concurrent in-flight probe requests, shared by every class that fires requests at discovered endpoints. Bounds the fiber/socket fan-out so a large endpoint set can't exhaust file descriptors. Backed by the validated --concurrency value (already clamped to a sane ceiling).

A module rather than a Deliver method because StatusCodeProbe is deliberately not a Deliver subclass (see its class comment) yet has to bound its fan-out exactly the same way. Keeping the rule in one place is what stops the two from drifting again: the status probe was strictly sequential for exactly as long as this lived on Deliver alone.

Direct including types

Defined in:

models/deliver.cr

Constant Summary

DEFAULT_PROBE_CONCURRENCY = 16