Remove an old fix that didn't fix anything.

This commit is contained in:
irungentoo 2015-11-12 15:32:40 -05:00
parent 22634a4b93
commit c84b9c4b4c
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -2102,9 +2102,6 @@ static int udp_handle_packet(void *object, IP_Port source, const uint8_t *packet
*/
#define REQUEST_PACKETS_COMPARE_CONSTANT (0.125 * 100.0)
/* Multiplier for maximum allowed resends. */
#define PACKET_RESEND_MULTIPLIER 3.5
/* Timeout for increasing speed after congestion event (in ms). */
#define CONGESTION_EVENT_TIMEOUT 1000
@ -2232,7 +2229,7 @@ static void send_crypto_packets(Net_Crypto *c)
conn->last_packets_left_set = temp_time - adj;
}
int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER);
int ret = send_requested_packets(c, i, conn->packets_left);
if (ret != -1) {
if ((unsigned int)ret < conn->packets_left) {