diff options
author | Valentin Bartenev <vbart@nginx.com> | 2011-12-05 12:06:15 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2011-12-05 12:06:15 +0400 |
commit | 92edf47ff998f174bab2d99c26f59991def2aa4e (patch) | |
tree | 6e514194ae2b9d4f43da303fe30d8ce6962e928b /src/core/ngx_connection.h | |
parent | 1ea2eb56ef2e26873b71c951b34f5cb98c0a2c53 (diff) |
Added the "so_keepalive=" parameter to the "listen" directive.
The "so_keepalive" directive in mail module was deprecated.
Thanks to Vsevolod Stakhov for initial work.
Diffstat (limited to 'src/core/ngx_connection.h')
-rw-r--r-- | src/core/ngx_connection.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index f9bf50401..9e3ca52fb 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -27,6 +27,11 @@ struct ngx_listening_s { int backlog; int rcvbuf; int sndbuf; +#if (NGX_HAVE_KEEPALIVE_TUNABLE) + int keepidle; + int keepintvl; + int keepcnt; +#endif /* handler of accepted connection */ ngx_connection_handler_pt handler; @@ -60,6 +65,7 @@ struct ngx_listening_s { #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) unsigned ipv6only:2; #endif + unsigned keepalive:2; #if (NGX_HAVE_DEFERRED_ACCEPT) unsigned deferred_accept:1; |