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 | f00b43167abbf8b34c5e1f9edcf8a71cdce8a70e (patch) | |
tree | 2cdccb39212bf335bb3d2de18f9fb15df85c1077 /src | |
parent | ae1948aa40c48a97f2e171acb84eb04bfcbe1307 (diff) | |
download | nginx-f00b43167abbf8b34c5e1f9edcf8a71cdce8a70e.tar.gz nginx-f00b43167abbf8b34c5e1f9edcf8a71cdce8a70e.zip |
Stream: reshuffled ngx_stream_listen_opt_t fields.
In preparation for adding more parameters to the listen directive,
and to be in sync with the corresponding structure in the http module.
No functional changes.
Diffstat (limited to 'src')
-rw-r--r-- | src/stream/ngx_stream.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/stream/ngx_stream.h b/src/stream/ngx_stream.h index 781e93751..3033206da 100644 --- a/src/stream/ngx_stream.h +++ b/src/stream/ngx_stream.h @@ -56,18 +56,19 @@ typedef struct { unsigned reuseport:1; unsigned so_keepalive:2; unsigned proxy_protocol:1; -#if (NGX_HAVE_KEEPALIVE_TUNABLE) - int tcp_keepidle; - int tcp_keepintvl; - int tcp_keepcnt; -#endif + int backlog; int rcvbuf; int sndbuf; + int type; #if (NGX_HAVE_TCP_FASTOPEN) int fastopen; #endif - int type; +#if (NGX_HAVE_KEEPALIVE_TUNABLE) + int tcp_keepidle; + int tcp_keepintvl; + int tcp_keepcnt; +#endif } ngx_stream_listen_opt_t; |