From d836def0190331bcb5f0e0527457a0b093016058 Mon Sep 17 00:00:00 2001 From: "Ted C. Cheng" Date: Wed, 23 Jan 2013 17:10:41 -0800 Subject: [PATCH] added tcp keepalive support to back-ldap --- doc/man/man5/slapd-ldap.5 | 19 +++++++++++++++++++ servers/slapd/back-ldap/bind.c | 3 +++ servers/slapd/back-ldap/config.c | 31 +++++++++++++++++++++++++++++++ servers/slapd/config.c | 30 +++++++++++++++++++++++++++++- 4 files changed, 82 insertions(+), 1 deletion(-) diff --git a/doc/man/man5/slapd-ldap.5 b/doc/man/man5/slapd-ldap.5 index 1244d1fe08..7b2ab181a2 100644 --- a/doc/man/man5/slapd-ldap.5 +++ b/doc/man/man5/slapd-ldap.5 @@ -422,6 +422,25 @@ for details on the syntax of this field. This directive causes a cached connection to be dropped an recreated after it has been idle for the specified time. +.TP +.B keepalive :: +The +.B keepalive +parameter sets the values of \fIidle\fP, \fIprobes\fP, and \fIinterval\fP +used to check whether a socket is alive; +.I idle +is the number of seconds a connection needs to remain idle before TCP +starts sending keepalive probes; +.I probes +is the maximum number of keepalive probes TCP should send before dropping +the connection; +.I interval +is interval in seconds between individual keepalive probes. +Only some systems support the customization of these values; +the +.B keepalive +parameter is ignored otherwise, and system-wide settings are used. + .TP .B network\-timeout