Doubled minimum transfer rate.

File transfers got stuck because it was too low.
This commit is contained in:
irungentoo 2014-06-04 17:55:07 -04:00
parent dc6f46a240
commit aa256d5858
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
2 changed files with 3 additions and 2 deletions

View File

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

View File

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