From aa256d58588182499704babc8e252f9fddc25c02 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 4 Jun 2014 17:55:07 -0400 Subject: [PATCH] Doubled minimum transfer rate. File transfers got stuck because it was too low. --- toxcore/net_crypto.c | 3 ++- toxcore/net_crypto.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index be450499..4c2a8faa 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -859,7 +859,8 @@ static int send_request_packet(Net_Crypto *c, int crypt_connection_id) if (len == -1) return -1; - return send_data_packet_helper(c, crypt_connection_id, conn->recv_array.buffer_start, conn->send_array.buffer_end, data, len); + return send_data_packet_helper(c, crypt_connection_id, conn->recv_array.buffer_start, conn->send_array.buffer_end, data, + len); } /* Send up to max num previously requested data packets. diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h index 79f5da35..12817acf 100644 --- a/toxcore/net_crypto.h +++ b/toxcore/net_crypto.h @@ -37,7 +37,7 @@ #define CRYPTO_PACKET_BUFFER_SIZE 16384 /* Must be a power of 2 */ /* Minimum packet rate per second. */ -#define CRYPTO_PACKET_MIN_RATE 8.0 +#define CRYPTO_PACKET_MIN_RATE 16.0 /* Minimum packet queue max length. */ #define CRYPTO_MIN_QUEUE_LENGTH 8