diff options
author | irungentoo <irungentoo@gmail.com> | 2015-06-21 21:36:10 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-06-21 21:36:10 -0400 |
commit | a0e783213bff0ad39dc1c1acb7e552f3f8b94917 (patch) | |
tree | 41c9221471c33352f32cdda0b01c79ed3ddad9db | |
parent | 12663475bcd06a11fc6ecbec9ceb6138ad322dc4 (diff) |
Lower the chances of disconnect when transferring files.
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 5aed104a..4f4f8283 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -2003,7 +2003,7 @@ static int udp_handle_packet(void *object, IP_Port source, const uint8_t *packet | |||
2003 | #define REQUEST_PACKETS_COMPARE_CONSTANT (0.125 * 100.0) | 2003 | #define REQUEST_PACKETS_COMPARE_CONSTANT (0.125 * 100.0) |
2004 | 2004 | ||
2005 | /* Multiplier for maximum allowed resends. */ | 2005 | /* Multiplier for maximum allowed resends. */ |
2006 | #define PACKET_RESEND_MULTIPLIER 2 | 2006 | #define PACKET_RESEND_MULTIPLIER 3 |
2007 | 2007 | ||
2008 | /* Timeout for increasing speed after congestion event (in ms). */ | 2008 | /* Timeout for increasing speed after congestion event (in ms). */ |
2009 | #define CONGESTION_EVENT_TIMEOUT 2000 | 2009 | #define CONGESTION_EVENT_TIMEOUT 2000 |