mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 22:58:34 +00:00
Read: Change AFD_EVENT_CLOSE to AFD_EVENT_DISCONNECT when the other end
hangs up. The socket isn't closed yet. Listen: Turn off fired flag for AFD_EVENT_ACCEPT. svn path=/trunk/; revision=13416
This commit is contained in:
parent
c7bf3eead3
commit
41918c7577
|
@ -242,6 +242,8 @@ NTSTATUS AfdAccept( PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
|||
|
||||
if( !SocketAcquireStateLock( FCB ) ) return LostSocket( Irp, TRUE );
|
||||
|
||||
FCB->EventsFired &= ~AFD_EVENT_ACCEPT;
|
||||
|
||||
if( FCB->NeedsNewListen ) {
|
||||
AFD_DbgPrint(MID_TRACE,("ADDRESSFILE: %x\n", FCB->AddressFile.Handle));
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ static VOID ProcessClose( PAFD_FCB FCB ) {
|
|||
}
|
||||
|
||||
/* Handle closing signal */
|
||||
FCB->PollState |= AFD_EVENT_CLOSE;
|
||||
FCB->PollState |= AFD_EVENT_DISCONNECT;
|
||||
|
||||
PollReeval( FCB->DeviceExt, FCB->FileObject );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue