Jacek Caban jacek@codeweavers.com writes:
/* FIXME: do the check also for SSL connections */
if(!netconn->useSSL) {
res = NETCON_recv(netconn, &b, 1, MSG_PEEK|MSG_DONTWAIT, &len);
if((res == ERROR_SUCCESS && len == 1) || res == WSAEWOULDBLOCK)
break;
This doesn't build with winsock (MSG_DONTWAIT is not defined). I'm also not sure what is the purpose of that check. If it's to check if remote has closed the connection, you need to do that by handling the error on the first send.