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

(ITS#8288) Asyncronous Disconnect Handlers Not Firing

Full_Name: Jeremy Childs
Version: 2.4.42
OS: FreeBSD/Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

I?m seeing an issue with async reconnects in libldap 2.4.42 - when the remote
server disconnects unexpectedly and there are requests in the queue,
request.c:196 calls ldap_free_connection with the force parameter set to 0.

Since apap_free_connection won?t actually free anything (or call the disconnect
handler) until the refcount is zero, nothing happens.

Testing with the force parameter set to 1 addresses the issue, the pending
requests get freed, and the connection itself frees, calling the disconnect
handler in the process.