rework time since reduction to only grow if cca is active, also start warm

This commit is contained in:
2024-05-27 11:59:32 +02:00
parent a4201f4407
commit 319e754aff
2 changed files with 24 additions and 7 deletions

View File

@@ -17,9 +17,13 @@ struct CUBIC : public FlowOnly {
// window size before last reduciton
double _window_max {2.f * MAXIMUM_SEGMENT_SIZE}; // start with mss*2
//double _window_last_max {2.f * MAXIMUM_SEGMENT_SIZE};
double _time_point_reduction {getTimeNow()};
double _time_since_reduction {12.f}; // warm start
private:
void updateReductionTimer(float time_delta);
void resetReductionTimer(void);
float getCWnD(void) const;
// moving avg over the last few delay samples