]> granicus.if.org Git - apache/commitdiff
Add error message and return if we fail reading from a bucket in the
authorBill Stoddard <stoddard@apache.org>
Fri, 6 Jul 2001 18:41:56 +0000 (18:41 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 6 Jul 2001 18:41:56 +0000 (18:41 +0000)
core_outout_filter(). core_output_filter() is in need of a rewrite, it is
getting quite crufty.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89507 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index a3e23cb78518517669486c4f0337d3622b3c81cb..fd0d04d5de2e43bc00830e90517962f09068cdfd 100644 (file)
@@ -3176,6 +3176,11 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b)
                        potential future problems... */
                     AP_DEBUG_ASSERT(AP_MIN_BYTES_TO_WRITE <=
                                     APR_BUCKET_BUFF_SIZE);
+                    if (rv != APR_SUCCESS) {
+                        ap_log_error(APLOG_MARK, APLOG_ERR, rv, c->base_server,
+                                     "core_output_filter: Error reading from bucket.");
+                        return rv;
+                    }
                     apr_brigade_write(ctx->b, NULL, NULL, str, n);
                 }
                 apr_brigade_destroy(b);