dont count timed-out as in-flight bytes

This commit is contained in:
Green Sky
2025-12-12 15:37:21 +01:00
parent 1319c11daf
commit 8576c5c153
5 changed files with 31 additions and 12 deletions

View File

@@ -27,7 +27,10 @@ struct FlowOnly : public CCAI {
float timestamp;
size_t bytes;
// set to true if counted as ce or resent due to timeout
// unset if it does not count torwards _in_flight_bytes
bool accounted {true};
// set if counted as ce or resent due to timeout
bool ignore {false};
};
std::vector<FlyingBunch> _in_flight;
@@ -71,7 +74,7 @@ struct FlowOnly : public CCAI {
int64_t canSend(float time_delta) override;
// get the list of timed out seq_ids
std::vector<SeqIDType> getTimeouts(void) const override;
std::vector<SeqIDType> getTimeouts(void) override;
int64_t inFlightCount(void) const override;
int64_t inFlightBytes(void) const override;