mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[AFD]
- Signal the event immediately if the select triggers have already been satisfied - This fixes hangs with applications that wait on the select event before performing any socket operations svn path=/trunk/; revision=52562
This commit is contained in:
parent
fff1ab8feb
commit
31774f263a
1 changed files with 5 additions and 0 deletions
|
@ -302,6 +302,11 @@ AfdEventSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
|||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
if( FCB->EventSelect && (FCB->PollState & FCB->EventSelectTriggers) ) {
|
||||
AFD_DbgPrint(MID_TRACE,("Setting event %x\n", FCB->EventSelect));
|
||||
KeSetEvent( FCB->EventSelect, IO_NETWORK_INCREMENT, FALSE );
|
||||
}
|
||||
|
||||
AFD_DbgPrint(MID_TRACE,("Returning %x\n", Status));
|
||||
|
||||
return UnlockAndMaybeComplete( FCB, Status, Irp,
|
||||
|
|
Loading…
Reference in a new issue