From 5c8cd8839a4fe15eac585164109645411d7e3e65 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 15 Dec 2008 14:39:12 +0000 Subject: [PATCH] revert [10848] That's not the way to solve the problem you're trying to fix: first keepalive packet is sent too early. --- src/common/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/config.py b/src/common/config.py index 0efbe4772..33447822a 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -312,8 +312,8 @@ class Config: 'attached_gpg_keys': [ opt_str, '' ], 'keep_alives_enabled': [ opt_bool, True], # send keepalive every N seconds of inactivity - 'keep_alive_every_foo_secs': [ opt_int, 120 ], - 'time_for_keep_alive_answer': [ opt_int, 60, _('How many seconds to wait for the answer of keepalive packet before we try to reconnect.') ], + 'keep_alive_every_foo_secs': [ opt_int, 55 ], + 'time_for_keep_alive_answer': [ opt_int, 20, _('How many seconds to wait for the answer of keepalive packet before we try to reconnect.') ], # try for 2 minutes before giving up (aka. timeout after those seconds) 'try_connecting_for_foo_secs': [ opt_int, 60 ], 'http_auth': [opt_str, 'ask'], # yes, no, ask