summaryrefslogtreecommitdiffhomepage
path: root/src/mail/ngx_mail.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2011-12-05 08:06:15 +0000
committerValentin Bartenev <vbart@nginx.com>2011-12-05 08:06:15 +0000
commit92edf47ff998f174bab2d99c26f59991def2aa4e (patch)
tree6e514194ae2b9d4f43da303fe30d8ce6962e928b /src/mail/ngx_mail.h
parent1ea2eb56ef2e26873b71c951b34f5cb98c0a2c53 (diff)
downloadnginx-92edf47ff998f174bab2d99c26f59991def2aa4e.tar.gz
nginx-92edf47ff998f174bab2d99c26f59991def2aa4e.tar.bz2
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/mail/ngx_mail.h')
-rw-r--r--src/mail/ngx_mail.h12
1 files changed, 12 insertions, 0 deletions
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
@@ -40,6 +40,12 @@ typedef struct {
#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;
@@ -95,6 +101,12 @@ typedef struct {
#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;