Skip to main content

DEFAULT_SECS

Constant DEFAULT_SECS 

Source
pub const DEFAULT_SECS: i64 = 5;
Expand description

How long to wait before calling an answer late, when the caller does not say.

Five seconds is the figure services/copier uses for a single filesystem chunk, chosen because it is comfortably longer than any healthy answer and short enough that a wedged peer does not hold a utility forever. An operation that legitimately takes longer (a whole-volume scrub) must say so with request_within rather than raising this for everyone.