summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-06-12 21:46:46 +0200
committermathieui <mathieui@mathieui.net>2016-06-12 21:46:46 +0200
commitce915a86c1120dcccb7571380241750007d64a6f (patch)
tree72926e3aa7f96f152b8a0911722f9a290fb7b8a8
parentaa79acb7d9cef2f19376a20ac27c13b9b46ac6e6 (diff)
downloadpoezio-ce915a86c1120dcccb7571380241750007d64a6f.tar.gz
poezio-ce915a86c1120dcccb7571380241750007d64a6f.tar.bz2
poezio-ce915a86c1120dcccb7571380241750007d64a6f.tar.xz
poezio-ce915a86c1120dcccb7571380241750007d64a6f.zip
Increase ping timeout delays (now that the ping actually works)
-rw-r--r--data/default_config.cfg4
-rw-r--r--doc/source/configuration.rst6
-rw-r--r--poezio/config.py4
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': '',