deleted secure socket when close client time out #4313
This commit is contained in:
parent
3aa6bed669
commit
5f33a21878
|
@ -1375,7 +1375,10 @@ Server::handleClientCloseTimeout(const Event&, void* vclient)
|
||||||
BaseClientProxy* client = reinterpret_cast<BaseClientProxy*>(vclient);
|
BaseClientProxy* client = reinterpret_cast<BaseClientProxy*>(vclient);
|
||||||
LOG((CLOG_NOTE "forced disconnection of client \"%s\"", getName(client).c_str()));
|
LOG((CLOG_NOTE "forced disconnection of client \"%s\"", getName(client).c_str()));
|
||||||
removeOldClient(client);
|
removeOldClient(client);
|
||||||
|
PacketStreamFilter* streamFileter = dynamic_cast<PacketStreamFilter*>(client->getStream());
|
||||||
|
TCPSocket* socket = dynamic_cast<TCPSocket*>(streamFileter->getStream());
|
||||||
delete client;
|
delete client;
|
||||||
|
m_clientListener->deleteSocket(socket);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue