[Date Prev][Date Next]
(ITS#4524) [enhancement] handling of failed connections in proxy backends
Full_Name: Pierangelo Masarati
Submission from: (NULL) (188.8.131.52)
Submitted by: ando
As a follow-up to this thread,
I've committed an improvement to libldap that allows to modify the URI sequence
after a connection is established. By default nothing happens; however,
back-ldap and back-meta have been modified to exploit this feature in a manner
that consists in moving the failed URIs at the end of the list. More
sophisticated behavior can be implemented by modifying the callback.
The change affects libldap and the proxy backends; some URI handling function
declarations have been moved from libraries/libldap/ldap-int.h into
include/ldap_pvt.h and a new ldap_set_urllist_proc() has been added.
Right now, a default behavior consisting in moving the contacted URI to the head
of the list is hardcoded in both backends, as it is believed to be beneficial.
The reordering is not reflected in back-config, so the reordering vanishes when
the server is stopped; however, run-time modifications to back-config result in
resetting the URI list.