comparison src/stream/ngx_stream.c @ 7846:2ab7b55ae4a0

Stream: the "fastopen" parameter of the "listen" directive. Based on a patch by Anbang Wen.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 20 May 2021 19:59:16 +0300
parents 4f9b72a229c1
children d514f88053e5
comparison
equal deleted inserted replaced
7845:5772da03faf8 7846:2ab7b55ae4a0
508 508
509 #if (NGX_HAVE_INET6) 509 #if (NGX_HAVE_INET6)
510 ls->ipv6only = addr[i].opt.ipv6only; 510 ls->ipv6only = addr[i].opt.ipv6only;
511 #endif 511 #endif
512 512
513 #if (NGX_HAVE_TCP_FASTOPEN)
514 ls->fastopen = addr[i].opt.fastopen;
515 #endif
516
513 #if (NGX_HAVE_REUSEPORT) 517 #if (NGX_HAVE_REUSEPORT)
514 ls->reuseport = addr[i].opt.reuseport; 518 ls->reuseport = addr[i].opt.reuseport;
515 #endif 519 #endif
516 520
517 stport = ngx_palloc(cf->pool, sizeof(ngx_stream_port_t)); 521 stport = ngx_palloc(cf->pool, sizeof(ngx_stream_port_t));