ap_proxy_string_read currently goes into an infinite loop when the proxied server
closes the connection without sending any data.  This patch fixes the problem
but I am not sure that this is the right way to do it.

-adam


Index: modules/proxy/proxy_util.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/proxy/proxy_util.c,v
retrieving revision 1.73
diff -u -r1.73 proxy_util.c
--- modules/proxy/proxy_util.c  28 Nov 2001 21:07:32 -0000      1.73
+++ modules/proxy/proxy_util.c  29 Dec 2001 00:14:18 -0000
@@ -1039,6 +1039,7 @@
            APR_BUCKET_REMOVE(e);
            apr_bucket_destroy(e);
        }
+    if (APR_BRIGADE_EMPTY(bb)) break;
     }
 
     return APR_SUCCESS;

Reply via email to