summaryrefslogtreecommitdiff
path: root/include/util_filter.h
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-09-04 10:32:10 +0000
committerYann Ylavic <ylavic@apache.org>2018-09-04 10:32:10 +0000
commit0093e3ad225e9106e3f128616d7a63876e3db011 (patch)
tree827d50dfc53702442e42c6e5b7420ad911c7f677 /include/util_filter.h
parent9ac73b8d6b32cdedd6af51b968fd78a320a1c3ce (diff)
downloadhttpd-0093e3ad225e9106e3f128616d7a63876e3db011.tar.gz
core: follow up to r1839997: some runtime optimizations.
We don't mind about cleaning up a connection filter when its pool is being cleaned up already. For request filters, let pending_filter_cleanup() do nothing if the given filter is not pending (anymore), which allows to save a cleanup kill when the filter is removed. Clear (zero) the reused filters (ap_filter_t) on reuse rather than cleanup, then a single APR_RING_CONCAT() can be used to recycle dead_filters in a one go. Always call ap_filter_recycle() in ap_filter_output_pending(), even if no filter is pending, and while at it fix s/ap_filter_recyle/ap_filter_recycle/ silly typo. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1840028 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/util_filter.h')
-rw-r--r--include/util_filter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/util_filter.h b/include/util_filter.h
index 80646e4d1e..7f0e856580 100644
--- a/include/util_filter.h
+++ b/include/util_filter.h
@@ -650,7 +650,7 @@ AP_DECLARE_NONSTD(int) ap_filter_input_pending(conn_rec *c);
*
* @param c The connection.
*/
-AP_DECLARE(void) ap_filter_recyle(conn_rec *c);
+AP_DECLARE(void) ap_filter_recycle(conn_rec *c);
/**
* Flush function for apr_brigade_* calls. This calls ap_pass_brigade