Skip to main content

size_window

Function size_window 

Source
pub fn size_window(
    bandwidth: u64,
    rtt: Duration,
    connections: u32,
    budget: WindowBudget,
) -> u64
Expand description

The window for one of connections connections carrying bandwidth bytes per second over a round trip of rtt: the bandwidth-delay product, cut to the connection’s equal share of the budget, and raised to the floor only where that share allows it. The windows of all connections never sum past WindowBudget::total.