gix_negotiate

Function window_size

source
pub fn window_size(
    transport_is_stateless: bool,
    window_size: Option<usize>,
) -> usize
Expand description

Calculate how many HAVE lines we may send in one round, with variation depending on whether the transport_is_stateless or not. window_size is the previous (or initial) value of the window size.