Skip to main content

Module controller_wait

Module controller_wait 

Source
Expand description

An agent whose pane is open but whose controller is not there yet.

A pane registers its agent as it mounts; its controller is made by the resync that follows. When AgentMux starts with panes to resume, that gap is seconds long, for every agent at once. A message for such an agent can’t be delivered (the sender answers NO_CONTROLLER), and that is not a refusal: the agent is starting. So what is held for it is not tried (awaits_controller), a failure that slips through is not counted against the message (is_no_controller), and the controller registering wakes whatever waits (controller_registered).

Constants§

NO_CONTROLLER
How the delivery path says a block has no controller (bootstrap::delivery).

Functions§

awaits_controller
Whether block_id, where an agent is registered, still waits for its controller. A lookup: no rate-limit token, no audit entry.
controller_registered
A controller registered: wake the replay of held messages, held input and pending cron fires, which left its agent alone until now. No I/O.
is_no_controller
Whether a delivery error is the delivery path finding no controller on the block.
set_has_controller
Say how to ask whether a block has a controller. Set once, when srv starts; until then every block counts as having one.