From: Quanah Gibson-Mount Date: Thu, 13 Aug 2009 01:41:34 +0000 (+0000) Subject: Introduce options to configure tcp-keepalive settings per connection. These X-Git-Tag: OPENLDAP_REL_ENG_2_4_18~76 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9cb74229f1b2749a22de85d868c6b8d8c0795321;p=openldap 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 --- 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 */