From b49e2b11d88d2e83792780962dbade266e80e8c2 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Sat, 22 Oct 2011 14:57:09 -0400 Subject: [PATCH] Lengthen ack timeouts to try to reduce packet double-sending --- transportsender.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transportsender.hpp b/transportsender.hpp index 5d850e9..fbbd7da 100644 --- a/transportsender.hpp +++ b/transportsender.hpp @@ -19,10 +19,10 @@ namespace Network { { private: /* timing parameters */ - static const int SEND_INTERVAL_MIN = 20; /* ms between frames */ + static const int SEND_INTERVAL_MIN = 25; /* ms between frames */ static const int SEND_INTERVAL_MAX = 250; /* ms between frames */ static const int ACK_INTERVAL = 3000; /* ms between empty acks */ - static const int ACK_DELAY = 10; /* ms before delayed ack */ + static const int ACK_DELAY = 20; /* ms before delayed ack */ static const int SEND_MINDELAY = 20; /* ms to collect all input */ static const int SHUTDOWN_RETRIES = 3; /* number of shutdown packets to send before giving up */