From a7c239b8014605ec1b7d43c5d35dbaa4b9a39b9b Mon Sep 17 00:00:00 2001 From: KimLS Date: Fri, 23 Jun 2017 21:52:28 -0700 Subject: [PATCH] Some changes to the outbound queue and default settings --- common/net/daybreak_connection.cpp | 3 ++- common/net/daybreak_connection.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/net/daybreak_connection.cpp b/common/net/daybreak_connection.cpp index 501cf30c0..d07023d05 100644 --- a/common/net/daybreak_connection.cpp +++ b/common/net/daybreak_connection.cpp @@ -366,7 +366,6 @@ void EQ::Net::DaybreakConnection::Process() } ProcessInboundQueue(); - ProcessOutboundQueue(); } catch (std::exception ex) { LogF(Logs::Detail, Logs::Netcode, "Error processing connection: {0}", ex.what()); @@ -1091,6 +1090,7 @@ void EQ::Net::DaybreakConnection::Ack(int stream, uint16_t seq) s->outstanding_bytes -= iter->second.packet.Length(); iter = s->outstanding_packets.erase(iter); + ProcessOutboundQueue(); } else { ++iter; @@ -1113,6 +1113,7 @@ void EQ::Net::DaybreakConnection::OutOfOrderAck(int stream, uint16_t seq) s->outstanding_bytes -= iter->second.packet.Length(); s->outstanding_packets.erase(iter); + ProcessOutboundQueue(); } } diff --git a/common/net/daybreak_connection.h b/common/net/daybreak_connection.h index 2c318793f..8f0b932a3 100644 --- a/common/net/daybreak_connection.h +++ b/common/net/daybreak_connection.h @@ -236,7 +236,7 @@ namespace EQ tic_rate_hertz = 60.0; resend_timeout = 90000; connection_close_time = 2000; - max_outstanding_packets = 200; + max_outstanding_packets = 300; max_outstanding_bytes = 200 * 512; }