Skip to main content

reconnect_cap

Function reconnect_cap 

Source
pub fn reconnect_cap(max: Duration, lease: Option<Duration>) -> Duration
Expand description

The longest wait between two tries to reach the master: max, but at most half the master’s worker lease once it has told it (B168), so a worker still alive reaches a master back from a restart before that master’s lease on it runs out; else the master would take it for lost and move its cleanups with only the handles it got (a handle registered while the master was away left behind).