Do not break away from the loop on every error. It can cause situation when

many threads die after one client death.

svn path=/trunk/; revision=27193
This commit is contained in:
Dmitry Gorbachev 2007-06-15 19:14:15 +00:00
parent a02534e0fe
commit 20560b2ef4

View file

@ -216,6 +216,13 @@ ClientConnectionThread(HANDLE ServerPort)
0,
&Reply->Header,
&Request->Header);
/* Client died, continue */
if (Status == STATUS_INVALID_CID)
{
Reply = NULL;
continue;
}
if (!NT_SUCCESS(Status))
{
DPRINT1("NtReplyWaitReceivePort failed: %lx\n", Status);