Skip to main content

Module budget

Module budget 

Source
Expand description

The bytes a streaming connection holds for the client. The streaming protocols have no flow control, so a connection bounds what it buffers for all of its streams together and stops reading the client once that is used up. The data gives its share back once it got taken.

Structsยง

Budget ๐Ÿ”’
The bytes a connection may hold. Clones share them.
Held ๐Ÿ”’
Data which counts against a Budget until it gets dropped.
HeldBuf ๐Ÿ”’
Held data of one Budget in a single buffer, which counts against the budget with all of its capacity until it gets dropped. Unlike a queue of Held, small data does not take an allocation of its own, which the budget does not count.