From 92edf47ff998f174bab2d99c26f59991def2aa4e Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 5 Dec 2011 08:06:15 +0000 Subject: 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. --- src/mail/ngx_mail.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/mail/ngx_mail.h') diff --git a/src/mail/ngx_mail.h b/src/mail/ngx_mail.h index fd6d318a5..ca78d0553 100644 --- a/src/mail/ngx_mail.h +++ b/src/mail/ngx_mail.h @@ -39,6 +39,12 @@ typedef struct { #endif #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) unsigned ipv6only:2; +#endif + unsigned so_keepalive:2; +#if (NGX_HAVE_KEEPALIVE_TUNABLE) + int tcp_keepidle; + int tcp_keepintvl; + int tcp_keepcnt; #endif } ngx_mail_listen_t; @@ -94,6 +100,12 @@ typedef struct { #endif #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) unsigned ipv6only:2; +#endif + unsigned so_keepalive:2; +#if (NGX_HAVE_KEEPALIVE_TUNABLE) + int tcp_keepidle; + int tcp_keepintvl; + int tcp_keepcnt; #endif } ngx_mail_conf_addr_t; -- cgit