From 31bebc7b111bb709a35fbc6702095dce84523834 Mon Sep 17 00:00:00 2001 From: Chuck Murcko Date: Fri, 13 Apr 2001 09:34:47 +0000 Subject: [PATCH] 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 --- modules/proxy/proxy_connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/proxy/proxy_connect.c b/modules/proxy/proxy_connect.c index 2c9bfc5c9e5..9de0fcdf5b0 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; } -- 2.47.3