Skip to main content

DEFAULT_MAX_CHUNKS_PER_REASSEMBLY

Constant DEFAULT_MAX_CHUNKS_PER_REASSEMBLY 

Source
pub const DEFAULT_MAX_CHUNKS_PER_REASSEMBLY: usize = 64;
Expand description

How many chunks one in-flight reassembly may claim before it is refused outright.

A peer naming an implausibly large total would otherwise have this buffer chunks forever waiting for pieces that may never arrive.