]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_dumpio: do nothing below log level TRACE7.
authorYann Ylavic <ylavic@apache.org>
Wed, 20 Dec 2017 14:38:05 +0000 (14:38 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 20 Dec 2017 14:38:05 +0000 (14:38 +0000)
For instance, depending on EnableMMAP/Sendfile configuration, don't split
file brigades to 8K heap buckets upon reading.

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

CHANGES
modules/debugging/mod_dumpio.c

diff --git a/CHANGES b/CHANGES
index a39a79fd1c00442eeeb05a870433d5a05e88ca3b..cf1d8c665092c731523a14938f79898bd709855e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.1
 
+  *) mod_dumpio: do nothing below log level TRACE7.  [Yann Ylavic]
+
   *) mod_md: reverses most of v1.0.5 optimization of post_config init, so that
      mod_ssl can ask for certiticates without crashing. [Stefan Eissing]
 
index c2ef657b85532cccdf79874c7cfa4e3be4eeeed7..58f72a551dec84dbf2141444915bb4ab16ac077f 100644 (file)
@@ -181,6 +181,11 @@ static int dumpio_pre_conn(conn_rec *c, void *csd)
 {
     dumpio_conf_t *ptr;
 
+    if (APLOGctrace7(c)) {
+        /* Nothing to do below TRACE7 */
+        return OK;
+    }
+
     ptr = (dumpio_conf_t *) ap_get_module_config(c->base_server->module_config,
                                                  &dumpio_module);