Skip to main content

Module reassembler

Module reassembler 

Source

Structsยง

PartialMessage ๐Ÿ”’
Reassembler ๐Ÿ”’
Reassembles fragmented messages received from untrusted peers.
ReassemblyState ๐Ÿ”’
Usage ๐Ÿ”’
Incomplete messages and the bytes reserved for them, counted by their declared total size.

Enumsยง

Pool ๐Ÿ”’
Group of sources that share the limits on incomplete messages.
ReassemblyError ๐Ÿ”’
Reason a fragment was dropped by Reassembler::accept.

Constantsยง

OTHER_POOL_LIMIT ๐Ÿ”’
Most incomplete messages and reserved bytes across all non-web sources.
REASSEMBLY_IDLE_TIMEOUT ๐Ÿ”’
Time without a new fragment after which an incomplete message is discarded, so a sender that stops mid-message frees its reservation before REASSEMBLY_TIMEOUT. Well above the Noise handshake timeout, because a handshake on either side delays fragment processing that long.
REASSEMBLY_TIMEOUT ๐Ÿ”’
Time after the first fragment at which an incomplete message is discarded.
SOURCE_LIMIT ๐Ÿ”’
Most incomplete messages and reserved bytes for a single source.
WEB_POOL_LIMIT ๐Ÿ”’
Most incomplete messages and reserved bytes across all web sources.

Type Aliasesยง

MessageKey ๐Ÿ”’
Fragments of one message are only ever combined with fragments from the same source.