From ecbe06b9fee57207d84be9ac39d1aa10b2d0fbd8 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 20 May 2021 19:59:16 +0300 Subject: Stream: the "fastopen" parameter of the "listen" directive. Based on a patch by Anbang Wen. --- src/stream/ngx_stream.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/stream/ngx_stream.c') diff --git a/src/stream/ngx_stream.c b/src/stream/ngx_stream.c index 78356754e..3304c843c 100644 --- a/src/stream/ngx_stream.c +++ b/src/stream/ngx_stream.c @@ -510,6 +510,10 @@ ngx_stream_optimize_servers(ngx_conf_t *cf, ngx_array_t *ports) ls->ipv6only = addr[i].opt.ipv6only; #endif +#if (NGX_HAVE_TCP_FASTOPEN) + ls->fastopen = addr[i].opt.fastopen; +#endif + #if (NGX_HAVE_REUSEPORT) ls->reuseport = addr[i].opt.reuseport; #endif -- cgit