[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Keep alive functionality when the remote closes the conenction due idle



alin vasile writes:
> My question is how the openl ldap library (libldap and libldap_r)
> handles the situation when the number of kee-alive probes for a
> connection is exceeded and the connection is closed at the server
> side.

Sounds like you want ldap_set_rebind_proc().  See man 3 ldap_bind.

The keepalive options are merely TCP options.  The server can close
connections for other reasons too in any case, such as idletimeout in
slapd.conf.  Without a rebind proc, the client then receives
LDAP_SERVER_DOWN (I think).

-- 
Hallvard