]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
ap_request_core_filter() can check whether the next filter should yield.
authorYann Ylavic <ylavic@apache.org>
Fri, 10 Aug 2018 16:24:15 +0000 (16:24 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 10 Aug 2018 16:24:15 +0000 (16:24 +0000)
Itself won't yield at this point (its f->bb is empty).

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

server/request.c

index 926148cf73841a9a4ec0fe0c061b8a162cae80ae..998924150c192e6533783baa3af16c9c22181ab5 100644 (file)
@@ -2103,7 +2103,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_request_core_filter(ap_filter_t *f,
         else {
             /* if the core has set aside data, back off and try later */
             if (!flush_upto) {
-                if (ap_filter_should_yield(f)) {
+                if (ap_filter_should_yield(f->next)) {
                     break;
                 }
             }