From 283297a10d228c3bed28485106a18b6b0980cdda Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 9 Aug 2015 21:47:54 -0400 Subject: [PATCH] Increased timeouts. --- toxcore/friend_connection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h index 32e947ac..044b8d7f 100644 --- a/toxcore/friend_connection.h +++ b/toxcore/friend_connection.h @@ -40,10 +40,10 @@ #define PACKET_ID_FRIEND_REQUESTS 18 /* Interval between the sending of ping packets. */ -#define FRIEND_PING_INTERVAL 7 +#define FRIEND_PING_INTERVAL 8 /* If no packets are received from friend in this time interval, kill the connection. */ -#define FRIEND_CONNECTION_TIMEOUT (FRIEND_PING_INTERVAL * 3) +#define FRIEND_CONNECTION_TIMEOUT (FRIEND_PING_INTERVAL * 4) /* Time before friend is removed from the DHT after last hearing about him. */ #define FRIEND_DHT_TIMEOUT BAD_NODE_TIMEOUT