mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[Network] Prune / disconnect TCP connections gracefully (#4574)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user