Skip to main content

STOP_TIMEOUT

Constant STOP_TIMEOUT 

Source
pub const STOP_TIMEOUT: Duration;
Expand description

How long a daemon is given to exit after it accepts a stop.

Stopping cancels a token and returns immediately; the daemon then unwinds its session manager, its phone server and its pollers. That is normally fast, but a daemon whose database has been migrated out from under it fails every read while it winds down and has been observed taking over five seconds — which the previous five-second bound missed by a fraction, reporting a stop that had in fact worked as did not stop and aborting the restart that depended on it.