Reads are allowed on connecting sockets. They act like normal reads
with no data available.
Modified: trunk/reactos/drivers/net/afd/afd/read.c
_____
Modified: trunk/reactos/drivers/net/afd/afd/read.c
--- trunk/reactos/drivers/net/afd/afd/read.c 2005-02-25 05:27:43 UTC
(rev 13738)
+++ trunk/reactos/drivers/net/afd/afd/read.c 2005-02-25 05:28:54 UTC
(rev 13739)
@@ -270,7 +270,8 @@
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;