From 5f33a21878b0fee4debf0454b9357943f594d7ee Mon Sep 17 00:00:00 2001 From: XinyuHou Date: Mon, 2 Feb 2015 16:06:51 +0000 Subject: [PATCH] deleted secure socket when close client time out #4313 --- src/lib/server/Server.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/server/Server.cpp b/src/lib/server/Server.cpp index 42367af4..f8b944f8 100644 --- a/src/lib/server/Server.cpp +++ b/src/lib/server/Server.cpp @@ -1375,7 +1375,10 @@ Server::handleClientCloseTimeout(const Event&, void* vclient) BaseClientProxy* client = reinterpret_cast(vclient); LOG((CLOG_NOTE "forced disconnection of client \"%s\"", getName(client).c_str())); removeOldClient(client); + PacketStreamFilter* streamFileter = dynamic_cast(client->getStream()); + TCPSocket* socket = dynamic_cast(streamFileter->getStream()); delete client; + m_clientListener->deleteSocket(socket); } void