# HG changeset patch # User Vladimir Homutov # Date 1640687098 -10800 # Node ID 7c0f9bb27763c72d6c6ad57cf6834033c906d0c1 # Parent fb811b6c76eed8b253213f7bb1c967d969ff5e49 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. diff --git a/src/event/quic/ngx_event_quic_bpf.c b/src/event/quic/ngx_event_quic_bpf.c --- a/src/event/quic/ngx_event_quic_bpf.c +++ b/src/event/quic/ngx_event_quic_bpf.c @@ -130,6 +130,14 @@ ngx_quic_bpf_module_init(ngx_cycle_t *cy ngx_pool_cleanup_t *cln; ngx_quic_bpf_conf_t *bcf; + if (ngx_test_config) { + /* + * during config test, SO_REUSEPORT socket option is + * not set, thus making further processing meaningless + */ + return NGX_OK; + } + ccf = ngx_core_get_conf(cycle); bcf = ngx_quic_bpf_get_conf(cycle);