diff options
author | Susant Sahani <susant@redhat.com> | 2014-08-14 23:06:11 +0530 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-08-14 19:48:57 -0400 |
commit | 209e9dcd7b2f23b68ff93bf20fad025bc03219ac (patch) | |
tree | ceff338a43dc61ee102275f891e36d334d27a0ea /src/core/socket.h | |
parent | 1dbe0a6efda7b1d35957eab7e1d56a2c69d806d9 (diff) |
socket: Add Support for TCP keep alive variables
The tcp keep alive variables now can be configured via conf
parameter. Follwing variables are now supported by this patch.
tcp_keepalive_intvl: The number of seconds between TCP keep-alive probes
tcp_keepalive_probes: The maximum number of TCP keep-alive probes to
send before giving up and killing the connection if no response is
obtained from the other end.
tcp_keepalive_time: The number of seconds a connection needs to be
idle before TCP begins sending out keep-alive probes.
Diffstat (limited to 'src/core/socket.h')
-rw-r--r-- | src/core/socket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/socket.h b/src/core/socket.h index 98396e7320..8871eb1ca3 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -101,7 +101,10 @@ struct Socket { unsigned max_connections; unsigned backlog; + unsigned keep_alive_cnt; usec_t timeout_usec; + usec_t keep_alive_time; + usec_t keep_alive_interval; ExecCommand* exec_command[_SOCKET_EXEC_COMMAND_MAX]; ExecContext exec_context; |