]> granicus.if.org Git - apache/commitdiff
Fix the core_output_filter to work with FLUSH buckets. With this change,
authorRyan Bloom <rbb@apache.org>
Thu, 2 Nov 2000 20:33:48 +0000 (20:33 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 2 Nov 2000 20:33:48 +0000 (20:33 +0000)
when the core sees a FLUSH bucket, we automatically send everything to the
network.

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

modules/http/http_core.c

index f387f4bbd47bbb1e99d29eb47ccd2a9ef163ab0f..d318acf1f2a8ec2c19eaf49658f1f0817ca94f2b 100644 (file)
@@ -3394,7 +3394,7 @@ static apr_status_t core_output_filter(ap_filter_t *f, ap_bucket_brigade *b)
         nbytes = 0; /* in case more points to another brigade */
         more = NULL;
         AP_BRIGADE_FOREACH(e, b) {
-            if (AP_BUCKET_IS_EOS(e)) {
+            if (AP_BUCKET_IS_EOS(e) || AP_BUCKET_IS_FLUSH(e)) {
                 break;
             }
             else if (AP_BUCKET_IS_FILE(e)) {