diff options
author | irungentoo <irungentoo@gmail.com> | 2015-08-09 21:47:54 -0400 |
---|---|---|
committer | Eniz Vukovic <eniz_vukovic@hotmail.com> | 2015-10-23 22:54:21 +0200 |
commit | 283297a10d228c3bed28485106a18b6b0980cdda (patch) | |
tree | d26c1d781de2a5242f7621c5ed3fbcd98d9bd102 | |
parent | 90b1ca872731d7911d6318c3a6e05133ea6071b8 (diff) |
Increased timeouts.
-rw-r--r-- | toxcore/friend_connection.h | 4 |
1 files 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 @@ | |||
40 | #define PACKET_ID_FRIEND_REQUESTS 18 | 40 | #define PACKET_ID_FRIEND_REQUESTS 18 |
41 | 41 | ||
42 | /* Interval between the sending of ping packets. */ | 42 | /* Interval between the sending of ping packets. */ |
43 | #define FRIEND_PING_INTERVAL 7 | 43 | #define FRIEND_PING_INTERVAL 8 |
44 | 44 | ||
45 | /* If no packets are received from friend in this time interval, kill the connection. */ | 45 | /* If no packets are received from friend in this time interval, kill the connection. */ |
46 | #define FRIEND_CONNECTION_TIMEOUT (FRIEND_PING_INTERVAL * 3) | 46 | #define FRIEND_CONNECTION_TIMEOUT (FRIEND_PING_INTERVAL * 4) |
47 | 47 | ||
48 | /* Time before friend is removed from the DHT after last hearing about him. */ | 48 | /* Time before friend is removed from the DHT after last hearing about him. */ |
49 | #define FRIEND_DHT_TIMEOUT BAD_NODE_TIMEOUT | 49 | #define FRIEND_DHT_TIMEOUT BAD_NODE_TIMEOUT |