mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-25 04:35:17 +00:00
Fix cubic minimum congestion window handling
`config.minimum_window` is already in bytes - it doesn't have to be multiplied by them..
This commit is contained in:
committed by
Dirkjan Ochtman
parent
4e95796240
commit
78d8619dd9
@@ -191,10 +191,7 @@ impl Controller for Cubic {
|
||||
|
||||
self.cubic_state.w_max = self.window as f64;
|
||||
self.ssthresh = (self.cubic_state.w_max * BETA_CUBIC) as u64;
|
||||
self.ssthresh = cmp::max(
|
||||
self.ssthresh,
|
||||
self.config.max_datagram_size * self.config.minimum_window,
|
||||
);
|
||||
self.ssthresh = cmp::max(self.ssthresh, self.config.minimum_window);
|
||||
self.window = self.ssthresh;
|
||||
self.cubic_state.k = self.cubic_state.cubic_k(self.config.max_datagram_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user