comparison src/core/ngx_connection.h @ 4323:c4513d4dd024

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.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 05 Dec 2011 08:06:15 +0000
parents e3cb8e27e413
children d620f497c50f
comparison
equal deleted inserted replaced
4322:acd8d267f557 4323:c4513d4dd024
25 int type; 25 int type;
26 26
27 int backlog; 27 int backlog;
28 int rcvbuf; 28 int rcvbuf;
29 int sndbuf; 29 int sndbuf;
30 #if (NGX_HAVE_KEEPALIVE_TUNABLE)
31 int keepidle;
32 int keepintvl;
33 int keepcnt;
34 #endif
30 35
31 /* handler of accepted connection */ 36 /* handler of accepted connection */
32 ngx_connection_handler_pt handler; 37 ngx_connection_handler_pt handler;
33 38
34 void *servers; /* array of ngx_http_in_addr_t, for example */ 39 void *servers; /* array of ngx_http_in_addr_t, for example */
58 unsigned addr_ntop:1; 63 unsigned addr_ntop:1;
59 64
60 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY) 65 #if (NGX_HAVE_INET6 && defined IPV6_V6ONLY)
61 unsigned ipv6only:2; 66 unsigned ipv6only:2;
62 #endif 67 #endif
68 unsigned keepalive:2;
63 69
64 #if (NGX_HAVE_DEFERRED_ACCEPT) 70 #if (NGX_HAVE_DEFERRED_ACCEPT)
65 unsigned deferred_accept:1; 71 unsigned deferred_accept:1;
66 unsigned delete_deferred:1; 72 unsigned delete_deferred:1;
67 unsigned add_deferred:1; 73 unsigned add_deferred:1;