summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-11-12 15:32:40 -0500
committerirungentoo <irungentoo@gmail.com>2015-11-12 15:32:40 -0500
commitc84b9c4b4c18a35df8e2bc134d3cdddd255f44a0 (patch)
tree958eb26257cad88540499f076acc69766281edf1 /toxcore
parent22634a4b93dda5b17cb357cd84ac46fcfdc22519 (diff)
Remove an old fix that didn't fix anything.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/net_crypto.c5
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) {