I was seeing in some non-easily reproduceable cases errors returned by
ldap_search_ext() that would hose the connection. The same connection
handler would be used after the offline timeout causing again the same
error (and us going offline again).
This patch should fix it or at least make the code a bit more resilient
to this kind of errors.
Simo.
--
Simo Sorce * Red Hat, Inc * New York