mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
2 changed files with 3 additions and 1 deletions
|
@ -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