]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
core: ap_filter_output_pending() to flush outer most filters first.
authorYann Ylavic <ylavic@apache.org>
Fri, 10 Aug 2018 16:15:50 +0000 (16:15 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 10 Aug 2018 16:15:50 +0000 (16:15 +0000)
commit3c7f5e2a32a54a12931f413b99c0633aee7414b5
treed8ba84fe2fa87966a4dcb9ca0c67ec9e5a8ece84
parent987966c5c883b56db884d17b75111775c37cd881
core: ap_filter_output_pending() to flush outer most filters first.

Since previous output filters may use ap_filter_should_yield() to determine
whether they should send more data (e.g. ap_request_core_filter), we need
to flush pending data from the core output filter first, and so on up the
chain.

Otherwise we may enter an infinite loop where ap_request_core_filter() does
nothing on ap_filter_output_pending() called from MPM event.

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