comparison auto/modules @ 7506:ee36940cfb0f

Unconditional compilation of the postpone filter. Postpone filter is an essential part of subrequest functionality. In absence of it a subrequest response body is sent to the client out of order with respect to the main request header and body, as well as other subrequests. For in-memory subrequests the response is also sent to the client instead of being stored in memory. Currently the postpone filter is automatically enabled if one of the following standard modules which are known to create subrequests is enabled: ssi, slice, addition. However a third-party module that creates subrequests can still be built without the postpone filter or be dynamically loaded in nginx built without it.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 08 May 2019 19:22:13 +0300
parents f2396ecf608b
children 45e9281c6c5b 5d91389e0fd3
comparison
equal deleted inserted replaced
7505:16a1adadf437 7506:ee36940cfb0f
97 97
98 98
99 if [ $HTTP_CACHE = YES ]; then 99 if [ $HTTP_CACHE = YES ]; then
100 have=NGX_HTTP_CACHE . auto/have 100 have=NGX_HTTP_CACHE . auto/have
101 HTTP_SRCS="$HTTP_SRCS $HTTP_FILE_CACHE_SRCS" 101 HTTP_SRCS="$HTTP_SRCS $HTTP_FILE_CACHE_SRCS"
102 fi
103
104
105 if [ $HTTP_SSI = YES ]; then
106 HTTP_POSTPONE=YES
107 fi
108
109
110 if [ $HTTP_SLICE = YES ]; then
111 HTTP_POSTPONE=YES
112 fi
113
114
115 if [ $HTTP_ADDITION = YES ]; then
116 HTTP_POSTPONE=YES
117 fi 102 fi
118 103
119 104
120 # the module order is important 105 # the module order is important
121 # ngx_http_static_module 106 # ngx_http_static_module
250 ngx_module_link=$HTTP_GZIP 235 ngx_module_link=$HTTP_GZIP
251 236
252 . auto/module 237 . auto/module
253 fi 238 fi
254 239
255 if [ $HTTP_POSTPONE = YES ]; then 240 if :; then
256 ngx_module_name=ngx_http_postpone_filter_module 241 ngx_module_name=ngx_http_postpone_filter_module
257 ngx_module_incs= 242 ngx_module_incs=
258 ngx_module_deps= 243 ngx_module_deps=
259 ngx_module_srcs=src/http/ngx_http_postpone_filter_module.c 244 ngx_module_srcs=src/http/ngx_http_postpone_filter_module.c
260 ngx_module_libs= 245 ngx_module_libs=
261 ngx_module_link=$HTTP_POSTPONE 246 ngx_module_link=YES
262 247
263 . auto/module 248 . auto/module
264 fi 249 fi
265 250
266 if [ $HTTP_SSI = YES ]; then 251 if [ $HTTP_SSI = YES ]; then