8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 10:03:03 +01:00

Fixed bug CORE-2248 : AV in server.cpp\loopThread()

Removed not needed check for request's port in parent port clients list as
a) this check not needed anymore
b) this loop is performance killer
This commit is contained in:
hvlad 2008-12-19 09:01:44 +00:00
parent 828955004f
commit df3c623874

View File

@ -4974,25 +4974,7 @@ static THREAD_ENTRY_DECLARE loopThread(THREAD_ENTRY_PARAM)
if (request->req_port->port_state != rem_port::DISCONNECTED)
{
rem_port* parent_port = request->req_port->port_server->srvr_parent_port;
if (parent_port == request->req_port)
{
process_packet(parent_port, &request->req_send,
&request->req_receive, &port);
}
else
{
for (port = parent_port->port_clients; port; port = port->port_next)
{
if (port == request->req_port)
{
process_packet(port, &request->req_send,
&request->req_receive, &port);
break;
}
}
}
process_packet(request->req_port, &request->req_send, &request->req_receive, &port);
}
else
{