From ce915a86c1120dcccb7571380241750007d64a6f Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 12 Jun 2016 21:46:46 +0200 Subject: Increase ping timeout delays (now that the ping actually works) --- data/default_config.cfg | 4 ++-- doc/source/configuration.rst | 6 +++--- poezio/config.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/data/default_config.cfg b/data/default_config.cfg index dacf1576..62124839 100644 --- a/data/default_config.cfg +++ b/data/default_config.cfg @@ -93,10 +93,10 @@ ca_cert_path = #auto_reconnect = true # The time between the ping sent to the server to check if the connection is alive -#connection_check_interval = 60 +#connection_check_interval = 300 # The timeout value of those pings -#connection_timeout_delay = 10 +#connection_timeout_delay = 30 # Send the initial presence # true, unless you want to be invisible from your roster diff --git a/doc/source/configuration.rst b/doc/source/configuration.rst index 52f7eb07..4f11a558 100644 --- a/doc/source/configuration.rst +++ b/doc/source/configuration.rst @@ -242,7 +242,7 @@ well, but you will at least want to know when you get disconnected. connection_check_interval - **Default value:** ``60`` + **Default value:** ``300`` A ping is sent to the server every N seconds, N being the value of that option. Change this to a low value if you want to know quickly @@ -253,9 +253,9 @@ well, but you will at least want to know when you get disconnected. connection_timeout_delay - **Default value:** ``10`` + **Default value:** ``30`` - The timeout delay of the ping referenced above, 10 should really be fine, but + The timeout delay of the ping referenced above, 30 should really be fine, but if your network is really unstable, it can be set higher or lower, depending of your preference. diff --git a/poezio/config.py b/poezio/config.py index d84f84e8..ef622f53 100644 --- a/poezio/config.py +++ b/poezio/config.py @@ -37,8 +37,8 @@ DEFAULT_CONFIG = { 'certificate': '', 'certfile': '', 'ciphers': 'HIGH+kEDH:HIGH+kEECDH:HIGH:!PSK:!SRP:!3DES:!aNULL', - 'connection_check_interval': 60, - 'connection_timeout_delay': 10, + 'connection_check_interval': 300, + 'connection_timeout_delay': 30, 'create_gaps': False, 'custom_host': '', 'custom_port': '', -- cgit v1.2.3