Expand description
Accepted connections, after the TLS handshake when there is TLS: one listener type for the
master’s gRPC server (a [Stream] for tonic) and a worker’s log endpoint (an axum
[Listener]).
Handshakes run beside the accept loop, each with a time limit, so a slow or silent client
holds up no one. A handshake that fails over certificates (e.g. a client without one from
the CA) is logged as a warning; one that just ends (a TCP probe) only at debug level. At
most its handshakes_at_once (MAX_HANDSHAKES by default) run at once; beyond that,
accepting waits.
Structs§
- Incoming
- Connections accepted on a listener; the accept loop stops when this is dropped.
Enums§
Constants§
- ACCEPT_
RETRY - How long a listener waits after a failed accept, unless
accept_retrysays. - HANDSHAKE_
TIMEOUT - How long a client has to complete the TLS handshake, unless
handshake_timeoutsays. - MAX_
HANDSHAKES - How many handshakes may run at once; beyond that, accepting waits (a flood of connections that never finish holds this many sockets, not all of them).
Functions§
- incoming
- Accepts connections on
listener, with a TLS handshake forprotocolwhentlsis given.