Full_Name: Jeremy Childs
Submission from: (NULL) (126.96.36.199)
Im 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 wont 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.