Skip to main content

SLICE_TIMEOUT

Constant SLICE_TIMEOUT 

Source
pub(crate) const SLICE_TIMEOUT: Duration;
Expand description

How long a single peer is given to answer a slice request.

A slice takes a second or two from a healthy guardian, so waiting half a minute only delays noticing that one is not going to answer. The timeout grows on every failed attempt up to MAX_SLICE_TIMEOUT, so a client on a slow connection where every guardian exceeds the initial timeout still makes progress instead of retrying forever.