Index: proxy_http.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_http.c,v
retrieving revision 1.114
diff -u -r1.114 proxy_http.c
--- proxy_http.c	19 Dec 2001 16:32:01 -0000	1.114
+++ proxy_http.c	29 Dec 2001 12:57:09 -0000
@@ -657,6 +657,22 @@
     while (received_continue) {
         apr_brigade_cleanup(bb);
 
+        while ((len = ap_getline(buffer, zizeof(buffer), rp, 0)) <= 0) {
+            if (len < 0) {
+                /* return status... what? timeout? connection dropped?
+                 * for now, just use what was returned in the original broken code
+                 * set rp->aborted?
+                 */
+                apr_socket_close(p_conn->sock);
+                backend->connection = NULL;
+                ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
+                              "proxy: error reading status line from remote "
+                              "server %s", p_conn->name);
+                return ap_proxyerror(r, HTTP_BAD_GATEWAY,
+                                     "Error reading from remote server");
+            }
+        }
+#if 0
         if (APR_SUCCESS != (rv = ap_proxy_string_read(origin, bb, buffer, sizeof(buffer), &eos))) {
             apr_socket_close(p_conn->sock);
             backend->connection = NULL;
@@ -667,7 +683,7 @@
                                  "Error reading from remote server");
         }
         len = strlen(buffer);
-
+#endif
        /* Is it an HTTP/1 response?
         * This is buggy if we ever see an HTTP/1.10
         */
