From 9cb74229f1b2749a22de85d868c6b8d8c0795321 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount <quanah@openldap.org> Date: Thu, 13 Aug 2009 01:41:34 +0000 Subject: [PATCH] Introduce options to configure tcp-keepalive settings per connection. These settings only work on Linux and are ignore when not supported (see discussion on -devel --- include/ldap.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/ldap.h b/include/ldap.h index b9f8d49bc7..ca748a23a0 100644 --- a/include/ldap.h +++ b/include/ldap.h @@ -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 */ -- GitLab