From: Yann Ylavic Date: Fri, 10 Aug 2018 16:24:15 +0000 (+0000) Subject: ap_request_core_filter() can check whether the next filter should yield. X-Git-Tag: 2.5.0-alpha2-ci-test-only~2398 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1b6c18b509f46ec98fa5c6155d33f86d82cb409;p=thirdparty%2Fapache%2Fhttpd.git ap_request_core_filter() can check whether the next filter should yield. 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 --- diff --git a/server/request.c b/server/request.c index 926148cf738..998924150c1 100644 --- a/server/request.c +++ b/server/request.c @@ -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; } }