From 151ddc38b256d123e37f46648917e8e7f7932682 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 12 Dec 2025 13:36:23 +0100 Subject: [PATCH] make timeout equal, other stuff --- solanaceae/ngc_ft1/cubic.hpp | 1 - solanaceae/ngc_ft1/ngcft1.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/solanaceae/ngc_ft1/cubic.hpp b/solanaceae/ngc_ft1/cubic.hpp index 3d09903..8b8384b 100644 --- a/solanaceae/ngc_ft1/cubic.hpp +++ b/solanaceae/ngc_ft1/cubic.hpp @@ -6,7 +6,6 @@ struct CUBIC : public FlowOnly { public: // config static constexpr float BETA {0.8f}; static constexpr float SCALING_CONSTANT {0.4f}; - static constexpr float RTT_EMA_ALPHA = 0.1f; // 0.1 is very smooth, might need more private: // window size before last reduciton diff --git a/solanaceae/ngc_ft1/ngcft1.cpp b/solanaceae/ngc_ft1/ngcft1.cpp index 81b0ac4..02b9be1 100644 --- a/solanaceae/ngc_ft1/ngcft1.cpp +++ b/solanaceae/ngc_ft1/ngcft1.cpp @@ -62,7 +62,7 @@ void NGCFT1::updateSendTransfer(float time_delta, uint32_t group_number, uint32_ } } }); - if (tf.time_since_activity >= sending_give_up_after) { + if (tf.time_since_activity >= (sending_give_up_after * peer.active_send_transfers)) { // no ack after 30sec, close ft std::cerr << "NGCFT1 warning: sending ft finishing timed out, deleting\n"; dispatch(