diff options
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 7fdf8dcc..a35cc4da 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -2102,9 +2102,6 @@ static int udp_handle_packet(void *object, IP_Port source, const uint8_t *packet | |||
2102 | */ | 2102 | */ |
2103 | #define REQUEST_PACKETS_COMPARE_CONSTANT (0.125 * 100.0) | 2103 | #define REQUEST_PACKETS_COMPARE_CONSTANT (0.125 * 100.0) |
2104 | 2104 | ||
2105 | /* Multiplier for maximum allowed resends. */ | ||
2106 | #define PACKET_RESEND_MULTIPLIER 3.5 | ||
2107 | |||
2108 | /* Timeout for increasing speed after congestion event (in ms). */ | 2105 | /* Timeout for increasing speed after congestion event (in ms). */ |
2109 | #define CONGESTION_EVENT_TIMEOUT 1000 | 2106 | #define CONGESTION_EVENT_TIMEOUT 1000 |
2110 | 2107 | ||
@@ -2232,7 +2229,7 @@ static void send_crypto_packets(Net_Crypto *c) | |||
2232 | conn->last_packets_left_set = temp_time - adj; | 2229 | conn->last_packets_left_set = temp_time - adj; |
2233 | } | 2230 | } |
2234 | 2231 | ||
2235 | int ret = send_requested_packets(c, i, conn->packets_left * PACKET_RESEND_MULTIPLIER); | 2232 | int ret = send_requested_packets(c, i, conn->packets_left); |
2236 | 2233 | ||
2237 | if (ret != -1) { | 2234 | if (ret != -1) { |
2238 | if ((unsigned int)ret < conn->packets_left) { | 2235 | if ((unsigned int)ret < conn->packets_left) { |