Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[PATCH] fix proxy_http.c

From: <barbee(at)veribox.net>
Date: Fri Aug 03 2001 - 03:52:57 EDT


appending flush bucket to the brigade is redundant since the EOS bucket indicates that there will be no more data and the filter should flush. otherwise, brigade processing gets screwed up and we sometimes segfault in the core output filter.

Index: proxy_http.c



RCS file: /home/cvspublic/httpd-proxy/module-2.0/proxy_http.c,v retrieving revision 1.82
diff -u -r1.82 proxy_http.c
--- proxy_http.c        2001/07/31 19:12:56     1.82
+++ proxy_http.c        2001/08/03 05:47:12
@@ -783,8 +783,6 @@
        /* read the body, pass it to the output filters */
        while (ap_get_brigade(rp->input_filters, bb, AP_MODE_BLOCKING,
&readbytes) == APR_SUCCESS) {
            if (APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(bb))) {

- e = apr_bucket_flush_create();
- APR_BRIGADE_INSERT_TAIL(bb, e);
ap_pass_brigade(r->output_filters, bb); break; }

john. Received on Fri Aug 03 15:39:08 2001

This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:53:18 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library