[Date Prev][Date Next]
configurable keepalive setting through libldap?
- To: email@example.com
- Subject: configurable keepalive setting through libldap?
- From: Ralf Haferkamp <firstname.lastname@example.org>
- Date: Thu, 30 Apr 2009 16:45:48 +0200
- Content-disposition: inline
- User-agent: KMail/1.11.2 (Linux/22.214.171.124-0.1-default; KDE/4.2.2; x86_64; ; )
since quite some time libldap enables tcp-keepalive, e.g. to detected dangling
syncrepl connections. However the default timeout of two hours that most
systems are using might be a bit too long for some applications (e.g. I had a
problem lately were nscd didn't answer queries anymore because nss_ldap was
blocking in SSL_read() while the underlying connection has been cut off). On
the other hand messing with the system wide settings might no be a good idea
either. On Linux it is possible to configure the keepalive settings on a per
socket basis through the TCP_KEEP* socket options.
Would it be worth adding ldap_set_option() support for those, even if they are
not really portable?