[nginx] Dynamic modules: introduced HTTP_INIT_FILTER_MODULES.

Maxim Dounin mdounin at mdounin.ru
Thu Feb 4 18:40:38 UTC 2016


details:   http://hg.nginx.org/nginx/rev/c529555949b7
branches:  
changeset: 6381:c529555949b7
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Thu Feb 04 18:30:21 2016 +0300
description:
Dynamic modules: introduced HTTP_INIT_FILTER_MODULES.

Additionally, HTTP_HEADERS_FILTER_MODULE now added to HTTP_FILTER_MODULES.
This avoids explict use of modules at the later stages, now only module
lists are used.  This will be needed in later patches.

diffstat:

 auto/modules |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (37 lines):

diff --git a/auto/modules b/auto/modules
--- a/auto/modules
+++ b/auto/modules
@@ -185,10 +185,17 @@ if [ $HTTP_USERID = YES ]; then
     HTTP_SRCS="$HTTP_SRCS $HTTP_USERID_SRCS"
 fi
 
+HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_HEADERS_FILTER_MODULE"
+
+
+HTTP_INIT_FILTER_MODULES="$HTTP_COPY_FILTER_MODULE \
+                          $HTTP_RANGE_BODY_FILTER_MODULE \
+                          $HTTP_NOT_MODIFIED_FILTER_MODULE"
+
 if [ $HTTP_SLICE = YES ]; then
     HTTP_SRCS="$HTTP_SRCS $HTTP_SLICE_SRCS"
-else
-    HTTP_SLICE_FILTER_MODULE=""
+    HTTP_INIT_FILTER_MODULES="$HTTP_INIT_FILTER_MODULES \
+                              $HTTP_SLICE_FILTER_MODULE"
 fi
 
 
@@ -469,12 +476,7 @@ fi
 
 if [ $HTTP = YES ]; then
     modules="$modules $HTTP_MODULES $HTTP_FILTER_MODULES \
-             $HTTP_HEADERS_FILTER_MODULE \
-             $HTTP_AUX_FILTER_MODULES \
-             $HTTP_COPY_FILTER_MODULE \
-             $HTTP_RANGE_BODY_FILTER_MODULE \
-             $HTTP_NOT_MODIFIED_FILTER_MODULE \
-             $HTTP_SLICE_FILTER_MODULE"
+             $HTTP_AUX_FILTER_MODULES $HTTP_INIT_FILTER_MODULES"
 
     NGX_ADDON_DEPS="$NGX_ADDON_DEPS \$(HTTP_DEPS)"
 fi



More information about the nginx-devel mailing list