mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Also wait in the success, no data case in socket state change.
svn path=/trunk/; revision=11022
This commit is contained in:
parent
2c75d67c33
commit
d7a6bf353f
1 changed files with 6 additions and 4 deletions
|
@ -95,16 +95,19 @@ int TCPSocketState(void *ClientData,
|
|||
TI_DbgPrint(MID_TRACE,
|
||||
("Completing Receive Request: %x\n",
|
||||
Bucket->Request));
|
||||
|
||||
|
||||
Complete( Bucket->Request.RequestContext,
|
||||
STATUS_SUCCESS, Received );
|
||||
} else if( Status == STATUS_PENDING ) {
|
||||
} else if( Status == STATUS_PENDING ||
|
||||
(Status == STATUS_SUCCESS && Received == 0) ) {
|
||||
InsertHeadList( &Connection->ReceiveRequest,
|
||||
&Bucket->Entry );
|
||||
break;
|
||||
} else {
|
||||
TI_DbgPrint(MID_TRACE,
|
||||
("Completing Receive request: %x %x\n",
|
||||
Bucket->Request, Status));
|
||||
Complete( Bucket->Request.RequestContext, Status, 0 );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -116,7 +119,6 @@ void TCPPacketSendComplete( PVOID Context,
|
|||
PNDIS_PACKET NdisPacket,
|
||||
NDIS_STATUS NdisStatus ) {
|
||||
TI_DbgPrint(MID_TRACE,("called\n"));
|
||||
/* FreeNdisPacket( NdisPacket ); */
|
||||
}
|
||||
|
||||
#define STRINGIFY(x) #x
|
||||
|
|
Loading…
Reference in a new issue