Connect a pipes client side as soon as a listening server side is available.

svn path=/trunk/; revision=12889
This commit is contained in:
Eric Kohl 2005-01-08 14:54:59 +00:00
parent b8e8ef8580
commit de8627877c

View file

@ -192,14 +192,14 @@ NpfsCreate(PDEVICE_OBJECT DeviceObject,
KeInitializeEvent(&ClientFcb->Event, SynchronizationEvent, FALSE); KeInitializeEvent(&ClientFcb->Event, SynchronizationEvent, FALSE);
/* /*
* Step 4. Add the client FCB to a list and connect it if necessary. * Step 4. Add the client FCB to a list and connect it if possible.
*/ */
/* Add the client FCB to the pipe FCB list. */ /* Add the client FCB to the pipe FCB list. */
InsertTailList(&Pipe->ClientFcbListHead, &ClientFcb->FcbListEntry); InsertTailList(&Pipe->ClientFcbListHead, &ClientFcb->FcbListEntry);
/* Connect pipes if they were created by the same thread */ /* Connect to listening server side */
if (ServerFcb && ServerFcb->Thread == ClientFcb->Thread) if (ServerFcb)
{ {
ClientFcb->OtherSide = ServerFcb; ClientFcb->OtherSide = ServerFcb;
ServerFcb->OtherSide = ClientFcb; ServerFcb->OtherSide = ClientFcb;