[PATCH try4] wininet: Added support for persistent HTTP connections

Alexandre Julliard julliard at winehq.org
Fri May 6 08:17:59 CDT 2011


Jacek Caban <jacek at 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.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list