Skip to main content

Module incoming

Module incoming 

Source
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§

Conn
An accepted connection.
Protocol
Which configuration the handshake uses.

Constants§

ACCEPT_RETRY
How long a listener waits after a failed accept, unless accept_retry says.
HANDSHAKE_TIMEOUT
How long a client has to complete the TLS handshake, unless handshake_timeout says.
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 for protocol when tls is given.