summaryrefslogtreecommitdiff
path: root/toxcore/friend_connection.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-08-09 21:47:54 -0400
committerirungentoo <irungentoo@gmail.com>2015-08-09 21:47:54 -0400
commit6098440e8b1e075b93d91d1bc8c5d4fe7998de43 (patch)
tree853b48e013e4589d907d186f07b90cc50267ea84 /toxcore/friend_connection.h
parent2ab3b14731061cc04d3ccc50a35093c11d018298 (diff)
Increased timeouts.
Diffstat (limited to 'toxcore/friend_connection.h')
-rw-r--r--toxcore/friend_connection.h4
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