comparison src/stream/ngx_stream.c @ 6174:68c106e6fa0a

Stream: added postconfiguration method to stream modules.
author Vladimir Homutov <vl@nginx.com>
date Tue, 09 Jun 2015 13:00:45 +0300
parents 3e8cddcff381
children 78c06e5e1d76
comparison
equal deleted inserted replaced
6173:1729d8d3eb3a 6174:68c106e6fa0a
202 } 202 }
203 } 203 }
204 } 204 }
205 } 205 }
206 206
207 for (m = 0; ngx_modules[m]; m++) {
208 if (ngx_modules[m]->type != NGX_STREAM_MODULE) {
209 continue;
210 }
211
212 module = ngx_modules[m]->ctx;
213
214 if (module->postconfiguration) {
215 if (module->postconfiguration(cf) != NGX_OK) {
216 return NGX_CONF_ERROR;
217 }
218 }
219 }
220
207 *cf = pcf; 221 *cf = pcf;
208 222
209 223
210 if (ngx_array_init(&ports, cf->temp_pool, 4, sizeof(ngx_stream_conf_port_t)) 224 if (ngx_array_init(&ports, cf->temp_pool, 4, sizeof(ngx_stream_conf_port_t))
211 != NGX_OK) 225 != NGX_OK)