Attempted fix of file transfer issue.

Instead of dropping the rate to minimum just half it until it drops
to the minimum.
This commit is contained in:
irungentoo 2014-07-14 12:21:13 -04:00
parent 2119a35604
commit 0244bd596d
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -2318,8 +2318,12 @@ static void send_crypto_packets(Net_Crypto *c)
conn->packets_resent = 0;
conn->last_queue_size = queue_size;
if (conn->packet_send_rate < CRYPTO_PACKET_MIN_RATE || !conn->sending || !conn->packets_sent) {
if (!conn->sending || !conn->packets_sent) {
conn->rate_increase = 0;
conn->packet_send_rate /= 2;
}
if (conn->packet_send_rate < CRYPTO_PACKET_MIN_RATE) {
conn->packet_send_rate = CRYPTO_PACKET_MIN_RATE;
}