Increased timeouts.

This commit is contained in:
irungentoo 2015-08-09 21:47:54 -04:00
parent 2ab3b14731
commit 6098440e8b
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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