From 8d391a7e3f3cb3e6ab189b88f2eef8bf5a77a8aa Mon Sep 17 00:00:00 2001 From: KimLS Date: Wed, 26 Apr 2017 22:58:36 -0700 Subject: [PATCH] Daybreak connection setting tweaks --- common/net/daybreak_connection.cpp | 2 +- common/net/daybreak_connection.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/net/daybreak_connection.cpp b/common/net/daybreak_connection.cpp index b203c0155..19b5ee5d1 100644 --- a/common/net/daybreak_connection.cpp +++ b/common/net/daybreak_connection.cpp @@ -1061,7 +1061,7 @@ void EQ::Net::DaybreakConnection::Ack(int stream, uint16_t seq) m_stats.max_ping = std::max(m_stats.max_ping, round_time); m_stats.min_ping = std::min(m_stats.min_ping, round_time); m_stats.last_ping = round_time; - m_rolling_ping = (m_rolling_ping * 3 + round_time) / 4; + m_rolling_ping = (m_rolling_ping * 2 + round_time) / 3; iter = s->sent_packets.erase(iter); } diff --git a/common/net/daybreak_connection.h b/common/net/daybreak_connection.h index ecbd1569c..9d885e81d 100644 --- a/common/net/daybreak_connection.h +++ b/common/net/daybreak_connection.h @@ -207,8 +207,8 @@ namespace EQ keepalive_delay_ms = 9000; resend_delay_ms = 300; resend_delay_factor = 1.5; - resend_delay_min = 300; - resend_delay_max = 6000; + resend_delay_min = 350; + resend_delay_max = 8000; connect_delay_ms = 500; stale_connection_ms = 90000; connect_stale_ms = 5000;