mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Doubled minimum transfer rate.
File transfers got stuck because it was too low.
This commit is contained in:
parent
dc6f46a240
commit
aa256d5858
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user