From: Bill Stoddard Date: Fri, 6 Jul 2001 19:49:47 +0000 (+0000) Subject: Grrr.. Cliff warned me about this. APR should return APR_SUCCESS with X-Git-Tag: 2.0.20~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48e11e39985868a6436aea47cec5f62c1017c882;p=apache Grrr.. Cliff warned me about this. APR should return APR_SUCCESS with zero bytes read rather than APR_EOF. Will work on APR later... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89508 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index d7328b257c..b6c1b95733 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -929,9 +929,9 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f, break; } } - else { - ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "ap_content_length_filter: " - "apr_bucket_read() failed"); + else if (rv != APR_EOF) { + ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, + "ap_content_length_filter: apr_bucket_read() failed"); return rv; } }