diff options
author | irungentoo <irungentoo@gmail.com> | 2014-10-20 20:52:17 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-10-20 20:52:17 -0400 |
commit | 5f26ee201c905a5267f500811b7a92d54bec008e (patch) | |
tree | 1bbc9f97ec269efb361f0a55f14fd805bef134ca /toxcore | |
parent | f4e050f3775718bd378fc8b91481b243b64d26c5 (diff) |
Increased interval and ping packet timeout by 1 second to try to
fix TCP issues.
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/friend_connection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h index 4f8cbf41..ef56fd94 100644 --- a/toxcore/friend_connection.h +++ b/toxcore/friend_connection.h | |||
@@ -39,7 +39,7 @@ | |||
39 | #define PACKET_ID_FRIEND_REQUESTS 18 | 39 | #define PACKET_ID_FRIEND_REQUESTS 18 |
40 | 40 | ||
41 | /* Interval between the sending of ping packets. */ | 41 | /* Interval between the sending of ping packets. */ |
42 | #define FRIEND_PING_INTERVAL 6 | 42 | #define FRIEND_PING_INTERVAL 7 |
43 | 43 | ||
44 | /* If no packets are received from friend in this time interval, kill the connection. */ | 44 | /* If no packets are received from friend in this time interval, kill the connection. */ |
45 | #define FRIEND_CONNECTION_TIMEOUT (FRIEND_PING_INTERVAL * 3) | 45 | #define FRIEND_CONNECTION_TIMEOUT (FRIEND_PING_INTERVAL * 3) |