From a703d318939a3430e0d4e5c8205379ae288524cc Mon Sep 17 00:00:00 2001 From: Vort Date: Tue, 19 Mar 2024 10:48:42 +0200 Subject: [PATCH] don't double initial RTO --- libi2pd/Streaming.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd/Streaming.cpp b/libi2pd/Streaming.cpp index 575d5b5c..322285c3 100644 --- a/libi2pd/Streaming.cpp +++ b/libi2pd/Streaming.cpp @@ -1013,7 +1013,8 @@ namespace stream if (packets.size () > 0) { m_NumResendAttempts++; - m_RTO *= 2; + if (m_RTO != INITIAL_RTO) + m_RTO *= 2; switch (m_NumResendAttempts) { case 1: // congestion avoidance