mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 21:53:31 -06:00
Core: apply missed options to sockets added during binary upgrade.
The accept_filter and deferred options were not applied to sockets that were added to configuration during binary upgrade cycle. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
This commit is contained in:
parent
8f3dfde7f7
commit
475832834b
@ -545,6 +545,16 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
||||
|
||||
if (nls[n].fd == (ngx_socket_t) -1) {
|
||||
nls[n].open = 1;
|
||||
#if (NGX_HAVE_DEFERRED_ACCEPT && defined SO_ACCEPTFILTER)
|
||||
if (nls[n].accept_filter) {
|
||||
nls[n].add_deferred = 1;
|
||||
}
|
||||
#endif
|
||||
#if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT)
|
||||
if (nls[n].deferred_accept) {
|
||||
nls[n].add_deferred = 1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user