[Network] Prune / disconnect TCP connections gracefully (#4574)

This commit is contained in:
Chris Miles
2025-01-05 23:48:00 -06:00
committed by GitHub
parent fe43d26dd6
commit c44596b38a
13 changed files with 2 additions and 73 deletions
-8
View File
@@ -91,8 +91,6 @@ void WorldServer::Connect()
});
m_connection->OnMessage(std::bind(&WorldServer::HandleMessage, this, std::placeholders::_1, std::placeholders::_2));
m_keepalive = std::make_unique<EQ::Timer>(1000, true, std::bind(&WorldServer::OnKeepAlive, this, std::placeholders::_1));
}
bool WorldServer::SendPacket(ServerPacket *pack)
@@ -4690,12 +4688,6 @@ void WorldServer::RequestTellQueue(const char *who)
return;
}
void WorldServer::OnKeepAlive(EQ::Timer *t)
{
ServerPacket pack(ServerOP_KeepAlive, 0);
SendPacket(&pack);
}
ZoneEventScheduler *WorldServer::GetScheduler() const
{
return m_zone_scheduler;
-2
View File
@@ -73,8 +73,6 @@ private:
uint32 cur_groupid;
uint32 last_groupid;
void OnKeepAlive(EQ::Timer *t);
std::unique_ptr<EQ::Net::ServertalkClient> m_connection;
std::unique_ptr<EQ::Timer> m_keepalive;