Skip to content

Instantly share code, notes, and snippets.

@Akkadius
Last active June 20, 2017 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akkadius/419c9517ecf90ad2aa337d208e7a378c to your computer and use it in GitHub Desktop.
Save Akkadius/419c9517ecf90ad2aa337d208e7a378c to your computer and use it in GitHub Desktop.
diff --git a/common/net/daybreak_connection.cpp b/common/net/daybreak_connection.cpp
index 19b5ee5..68fc24a 100644
--- a/common/net/daybreak_connection.cpp
+++ b/common/net/daybreak_connection.cpp
@@ -277,7 +277,7 @@ EQ::Net::DaybreakConnection::DaybreakConnection(DaybreakConnectionManager *owner
m_encode_passes[1] = owner->m_options.encode_passes[1];
m_hold_time = Clock::now();
m_buffered_packets_length = 0;
- m_rolling_ping = 900;
+ m_rolling_ping = 500;
m_resend_delay = (m_rolling_ping * m_owner->m_options.resend_delay_factor) + m_owner->m_options.resend_delay_ms;
m_combined.reset(new char[512]);
m_combined[0] = 0;
@@ -300,7 +300,7 @@ EQ::Net::DaybreakConnection::DaybreakConnection(DaybreakConnectionManager *owner
m_crc_bytes = 0;
m_hold_time = Clock::now();
m_buffered_packets_length = 0;
- m_rolling_ping = 900;
+ m_rolling_ping = 500;
m_resend_delay = (m_rolling_ping * m_owner->m_options.resend_delay_factor) + m_owner->m_options.resend_delay_ms;
m_combined.reset(new char[512]);
m_combined[0] = 0;
@@ -1026,7 +1026,7 @@ void EQ::Net::DaybreakConnection::ProcessResend(int stream)
InternalBufferedSend(entry.second.packet);
entry.second.last_sent = now;
entry.second.times_resent++;
- m_rolling_ping += 300;
+ m_rolling_ping += 100;
}
}
else {
@@ -1040,7 +1040,7 @@ void EQ::Net::DaybreakConnection::ProcessResend(int stream)
InternalBufferedSend(entry.second.packet);
entry.second.last_sent = now;
entry.second.times_resent++;
- m_rolling_ping += 300;
+ m_rolling_ping += 100;
}
}
}
diff --git a/common/net/daybreak_connection.h b/common/net/daybreak_connection.h
index 2d99153..e8bd99d 100644
--- a/common/net/daybreak_connection.h
+++ b/common/net/daybreak_connection.h
@@ -206,10 +206,10 @@ namespace EQ
DaybreakConnectionManagerOptions() {
max_connection_count = 0;
keepalive_delay_ms = 9000;
- resend_delay_ms = 300;
+ resend_delay_ms = 150;
resend_delay_factor = 1.5;
- resend_delay_min = 350;
- resend_delay_max = 8000;
+ resend_delay_min = 150;
+ resend_delay_max = 1000;
connect_delay_ms = 500;
stale_connection_ms = 90000;
connect_stale_ms = 5000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment