Skip to main content

LEASE_TTL

Constant LEASE_TTL 

Source
pub const LEASE_TTL: Duration;
Expand description

How long a lease stays believable after its last beat.

Longer than [WAIT_SLICE]’s hand-back gap by a wide margin: a slice that ends with Wait::Pending leaves the asking agent a moment to call magi ask --wait again, and a reply leaves it a moment to call --thread. A holder that beats every [POLL] and is silent for ninety seconds is gone or about to be, and a lease that is merely between two calls must not be mistaken for that - the daemon waiter would start a second agent on a conversation the first is still in.