From: Ryan Bloom Date: Sat, 11 Nov 2000 17:51:58 +0000 (+0000) Subject: Make proxy_connect.c compile cleanly again. Not sure if it works or not, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30e9f08427fe4b58d79ac1c2bd297c18167d3499;p=apache Make proxy_connect.c compile cleanly again. Not sure if it works or not, but it does compile. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86926 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_connect.c b/modules/proxy/proxy_connect.c index 4de7ab5e83..e93c51a55f 100644 --- a/modules/proxy/proxy_connect.c +++ b/modules/proxy/proxy_connect.c @@ -209,7 +209,7 @@ int ap_proxy_connect_handler(request_rec *r, ap_cache_el *c, char *url, "Returning 200 OK Status"); ap_rvputs(r, "HTTP/1.0 200 Connection established" CRLF, NULL); ap_rvputs(r, "Proxy-agent: ", ap_get_server_version(), CRLF CRLF, NULL); - ap_bflush(r->connection->client); + ap_rflush(r); } sock_buff = ap_bcreate(r->pool, B_RDWR); @@ -262,7 +262,8 @@ int ap_proxy_connect_handler(request_rec *r, ap_cache_el *c, char *url, int o = 0; while(nbytes) { - ap_bwrite(r->connection->client, buffer + o, nbytes, &i); + i = nbytes; + apr_send(r->connection->client_socket, buffer + o, &i); o += i; nbytes -= i; } @@ -276,8 +277,8 @@ int ap_proxy_connect_handler(request_rec *r, ap_cache_el *c, char *url, if (pollevent & APR_POLLIN) { ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, NULL, "client was set"); - if(ap_bread(r->connection->client, buffer, HUGE_STRING_LEN, - &nbytes) == APR_SUCCESS) { + nbytes = HUGE_STRING_LEN; + if(apr_recv(r->connection->client_socket, buffer, &nbytes) == APR_SUCCESS) { int o = 0; while(nbytes) {