Expand description
What the Exit pays for on a peer’s behalf, and the bounds put on it: the refusal reply budget and
the labels of hopr_exit_control_packets_total.
Structs§
- Bucket
State 🔒 - Refusal
Reply 🔒Bucket - A token bucket over a
RefusalReplyBudget, shared by every clone of the manager. - Refusal
Reply Budget - How many refusal replies an Exit sends, shared by every reason it refuses a
StartSession.
Enums§
- Exit
Control 🔒Kind - What a packet the Exit sent on a peer’s behalf was for, as
hopr_exit_control_packets_totallabels it. Closed, so no call site can invent a label value.Refusal*kinds answer a declinedStartSession; the rest are sent for admitted Sessions. - Exit
Control 🔒Outcome - What became of a packet, as
hopr_exit_control_packets_totallabels it. - Exit
Session 🔒Kind - Whether the Session a packet belongs to offers PIX, as
hopr_exit_control_packets_totallabels it.
Constants§
- DEFAULT_
REFUSAL_ REPLY_ BURST - The default
RefusalReplyBudget::burst: the most replies a flood can make the Exit pay for back to back, while a briefly busy Exit still answers the Entries that arrive together. - DEFAULT_
REFUSAL_ REPLY_ REFILL_ PERIOD - The default
RefusalReplyBudget::refill_period. - MIN_
REFUSAL_ REPLY_ REFILL_ PERIOD - The shortest
RefusalReplyBudget::refill_periodaccepted; a zero period would be no budget.
Functions§
- record_
exit_ 🔒control - Counts one packet the Exit sent, or declined to send, on a peer’s behalf.