WSARecv on SOCK_STREAM sockets.
+2009-09-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_socket.cc (fhandler_socket::recv_internal): Always call
+ WSARecv on SOCK_STREAM sockets.
+
2009-09-28 Corinna Vinschen <corinna@vinschen.de>
* fhandler.h (class dev_console): Constify charset parameter of
This also covers another weird case: Winsock returns WSAEFAULT if
namelen is a valid pointer while name is NULL. Both parameters are
ignored for TCP sockets, so this only occurs when using UDP socket. */
- else if (!wsamsg->name)
+ else if (!wsamsg->name || get_socket_type () == SOCK_STREAM)
res = WSARecv (get_socket (), wsabuf, wsacnt, &wret, &wsamsg->dwFlags,
NULL, NULL);
else