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:
Art Yerkes 2005-02-05 05:40:35 +00:00
parent c7bf3eead3
commit 41918c7577
2 changed files with 3 additions and 1 deletions

View file

@ -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));

View file

@ -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 );
}