From: Chuck Murcko Date: Fri, 13 Apr 2001 09:34:47 +0000 (+0000) Subject: Fix logic in connect handler from previous patch X-Git-Tag: 2.0.17~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31bebc7b111bb709a35fbc6702095dce84523834;p=apache Fix logic in connect handler from previous patch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88845 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_connect.c b/modules/proxy/proxy_connect.c index 2c9bfc5c9e..9de0fcdf5b 100644 --- a/modules/proxy/proxy_connect.c +++ b/modules/proxy/proxy_connect.c @@ -331,9 +331,9 @@ int ap_proxy_connect_handler(request_rec *r, char *url, int o = 0; while(nbytes) { - i = nbytes; if (apr_send(r->connection->client_socket, buffer + o, &nbytes) != APR_SUCCESS) break; + i = nbytes; o += i; nbytes -= i; } @@ -354,9 +354,9 @@ int ap_proxy_connect_handler(request_rec *r, char *url, int o = 0; while(nbytes) { - i = nbytes; if (apr_send(sock, buffer + o, &nbytes) != APR_SUCCESS) break; + i = nbytes; o += i; nbytes -= i; }