Skip to content

Commit

Permalink
QUIC: fixed config test with bpf (ticket #2292).
Browse files Browse the repository at this point in the history
The SO_REUSEPORT socket option is not set during configuration testing,
thus making the further module initialization impossible and meaningless.
  • Loading branch information
vlhomutov committed Dec 28, 2021
1 parent cd278da commit bef80e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/event/quic/ngx_event_quic_bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ ngx_quic_bpf_module_init(ngx_cycle_t *cycle)
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);

Expand Down

0 comments on commit bef80e7

Please sign in to comment.