feat(server): negotiate server fill

This commit is contained in:
Nils Andreas Svee committed 2026-08-14 12:32:37 +07:00
1 parent 24465bc1da
commit 36500e1ea0
9 files changed
+419 -15

No files matched your search

+7 -2
View File
@@ -42,8 +42,13 @@ use crate::{clock::saturating_ns, config::ServerConfig};
/// interval, so this server never enforces a cadence slower than the one it just
/// handed the client.
///
/// Later policy slices will add the timestamp allowance, DSCP policy and the
/// server-fill allow-list.
/// **ServerFill is settled separately**, by
/// [`negotiate_server_fill`](crate::fill::negotiate_server_fill), because it
/// produces a second result this function has nowhere to put: the effective
/// fill the session will use, which is not always what the descriptor in
/// `Params` says. The two run back to back on the same open.
///
/// Later policy slices may add the timestamp allowance and DSCP policy.
///
/// Negotiation is not by itself an acknowledgement: the core validates what this
/// function returns and silently discards an open whose effective parameters it