]> granicus.if.org Git - apache/commitdiff
* server/util_filter.c (ap_filter_flush): Tweak comment; no functional
authorJoe Orton <jorton@apache.org>
Thu, 11 Oct 2007 14:13:40 +0000 (14:13 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 11 Oct 2007 14:13:40 +0000 (14:13 +0000)
change.

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

server/util_filter.c

index a59dcd8b800a36f3025539226eb639c6a73fd31a..1b9e84112c04b960b300477fec1039e195525dc2 100644 (file)
@@ -582,12 +582,11 @@ AP_DECLARE_NONSTD(apr_status_t) ap_filter_flush(apr_bucket_brigade *bb,
 
     rv = ap_pass_brigade(f, bb);
 
-    /* apr_brigade_write et all require that the flush callback
-     * ensures the brigade is empty upon return; otherwise the brigade
-     * may be left with a transient bucket whose contents have fallen
-     * out of scope.  Call cleanup here unconditionally, to avoid the
-     * issue even in error cases where some filter fails and leaves a
-     * non-empty brigade. */
+    /* Before invocation of the flush callback, apr_brigade_write et
+     * al may place transient buckets in the brigade, which will fall
+     * out of scope after returning.  Empty the brigade here, to avoid
+     * issues with leaving such buckets in the brigade if some filter
+     * fails and leaves a non-empty brigade. */
     apr_brigade_cleanup(bb);
 
     return rv;