Reads are allowed on connecting sockets. They act like normal reads

with no data available.

svn path=/trunk/; revision=13739
This commit is contained in:
Art Yerkes 2005-02-25 05:28:54 +00:00
parent 333c14350e
commit 7732bb216d

View file

@ -270,7 +270,8 @@ AfdConnectedSocketReadData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
if( !SocketAcquireStateLock( FCB ) ) return LostSocket( Irp, FALSE );
if( FCB->State != SOCKET_STATE_CONNECTED ) {
if( FCB->State != SOCKET_STATE_CONNECTED &&
FCB->State != SOCKET_STATE_CONNECTING ) {
AFD_DbgPrint(MID_TRACE,("Called recv on wrong kind of socket (s%x)\n",
FCB->State));
return STATUS_UNSUCCESSFUL;