]> git.sur5r.net Git - openldap/commitdiff
Introduce options to configure tcp-keepalive settings per connection. These
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 13 Aug 2009 01:41:34 +0000 (01:41 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 13 Aug 2009 01:41:34 +0000 (01:41 +0000)
settings only work on Linux and are ignore when not supported (see
discussion on -devel

include/ldap.h

index b9f8d49bc703a53a01b177d9a6f2aa4a5b3fda45..ca748a23a07b03f04d368de6d8f1af113232dab8 100644 (file)
@@ -191,6 +191,13 @@ LDAP_BEGIN_DECL
 #define LDAP_OPT_X_GSSAPI_DO_NOT_FREE_CONTEXT      0x6200
 #define LDAP_OPT_X_GSSAPI_ALLOW_REMOTE_PRINCIPAL   0x6201
 
+/*
+ * OpenLDAP per connection tcp-keepalive settings
+ * (Linux only, ignored where unsupported)
+ */
+#define LDAP_OPT_X_KEEPALIVE_IDLE              0x6300
+#define LDAP_OPT_X_KEEPALIVE_PROBES            0x6301
+#define LDAP_OPT_X_KEEPALIVE_INTERVAL  0x6302
 
 /* Private API Extensions -- reserved for application use */
 #define LDAP_OPT_PRIVATE_EXTENSION_BASE 0x7000  /* Private API inclusive */