Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic_bpf.c @ 8764:7c0f9bb27763 quic
QUIC: fixed config test with bpf (ticket #2292).
The SO_REUSEPORT socket option is not set during configuration testing,
thus making the further module initialization impossible and meaningless.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 28 Dec 2021 13:24:58 +0300 |
parents | e5a180511dec |
children |
comparison
equal
deleted
inserted
replaced
8763:fb811b6c76ee | 8764:7c0f9bb27763 |
---|---|
128 ngx_listening_t *ls; | 128 ngx_listening_t *ls; |
129 ngx_core_conf_t *ccf; | 129 ngx_core_conf_t *ccf; |
130 ngx_pool_cleanup_t *cln; | 130 ngx_pool_cleanup_t *cln; |
131 ngx_quic_bpf_conf_t *bcf; | 131 ngx_quic_bpf_conf_t *bcf; |
132 | 132 |
133 if (ngx_test_config) { | |
134 /* | |
135 * during config test, SO_REUSEPORT socket option is | |
136 * not set, thus making further processing meaningless | |
137 */ | |
138 return NGX_OK; | |
139 } | |
140 | |
133 ccf = ngx_core_get_conf(cycle); | 141 ccf = ngx_core_get_conf(cycle); |
134 bcf = ngx_quic_bpf_get_conf(cycle); | 142 bcf = ngx_quic_bpf_get_conf(cycle); |
135 | 143 |
136 ngx_conf_init_value(bcf->enabled, 0); | 144 ngx_conf_init_value(bcf->enabled, 0); |
137 | 145 |