Skip to main content

MAX_IGNORED_MESSAGES_PER_DECODE

Constant MAX_IGNORED_MESSAGES_PER_DECODE 

Source
pub(super) const MAX_IGNORED_MESSAGES_PER_DECODE: usize = 1024;
Expand description

The number of messages in a row that one [Decoder::decode] call ignores.

The messages behind them in the buffer are decoded when the peer sends more bytes. Peers don’t send this many ignored messages in a row in normal operation.