https://bugs.openldap.org/show_bug.cgi?id=9210
--- Comment #14 from Ryan Tandy ryan@openldap.org --- Created attachment 707 --> https://bugs.openldap.org/attachment.cgi?id=707&action=edit test program
Here's a test program that exercises connecting with a non-blocking socket, like sssd does. Currently it fails on 2.4 with LDAP_SERVER_DOWN and on 2.5 with LDAP_TIMEOUT, but succeeds if you comment out the fcntl().
This only tests the non-blocking scenario. Any patch should also be tested with a blocking socket per the scenario from bug 8650.