diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2024-03-22 14:53:19 +0400 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2024-03-22 14:53:19 +0400 |
commit | 03eba69013eb4f4499a5c09f72338ab95ce00801 (patch) | |
tree | d37a10aebeeaacb2c8479956151277b6d1f6c225 /src/stream/ngx_stream.c | |
parent | f00b43167abbf8b34c5e1f9edcf8a71cdce8a70e (diff) | |
download | nginx-03eba69013eb4f4499a5c09f72338ab95ce00801.tar.gz nginx-03eba69013eb4f4499a5c09f72338ab95ce00801.zip |
Stream: the "deferred" parameter of the "listen" directive.
The Linux TCP_DEFER_ACCEPT support.
Diffstat (limited to 'src/stream/ngx_stream.c')
-rw-r--r-- | src/stream/ngx_stream.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stream/ngx_stream.c b/src/stream/ngx_stream.c index 9e16cd382..9a9184213 100644 --- a/src/stream/ngx_stream.c +++ b/src/stream/ngx_stream.c @@ -1021,6 +1021,10 @@ ngx_stream_add_listening(ngx_conf_t *cf, ngx_stream_conf_addr_t *addr) ls->keepcnt = addr->opt.tcp_keepcnt; #endif +#if (NGX_HAVE_DEFERRED_ACCEPT && defined TCP_DEFER_ACCEPT) + ls->deferred_accept = addr->opt.deferred_accept; +#endif + #if (NGX_HAVE_INET6) ls->ipv6only = addr->opt.ipv6only; #endif |