tweak finishing timer

This commit is contained in:
Green Sky 2024-11-06 10:49:24 +01:00
parent 6eb5826616
commit 01c892df8c
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ struct FlowOnly : public CCAI {
public: // config public: // config
static constexpr float RTT_EMA_ALPHA = 0.001f; // might need change over time static constexpr float RTT_EMA_ALPHA = 0.001f; // might need change over time
static constexpr float RTT_UP_MAX = 3.0f; // how much larger a delay can be to be taken into account static constexpr float RTT_UP_MAX = 3.0f; // how much larger a delay can be to be taken into account
static constexpr float RTT_MAX = 2.f; // 2 sec is probably too much static constexpr float RTT_MAX = 2.f; // maybe larger for tunneled connections
protected: protected:
// initialize to low value, will get corrected very fast // initialize to low value, will get corrected very fast

View File

@ -625,7 +625,8 @@ bool NGCFT1::onEvent(const Events::NGCEXT_ft1_data& e) {
// TODO: keep around for remote timeout + delay + offset, so we can be sure all acks where received // TODO: keep around for remote timeout + delay + offset, so we can be sure all acks where received
// or implement a dedicated finished that needs to be acked // or implement a dedicated finished that needs to be acked
transfer.finishing_timer = 0.75f; // TODO: we are receiving, we dont know delay //transfer.finishing_timer = 0.75f; // TODO: we are receiving, we dont know delay
transfer.finishing_timer = FlowOnly::RTT_MAX;
dispatch( dispatch(
NGCFT1_Event::recv_done, NGCFT1_Event::recv_done,