https://bugs.openldap.org/show_bug.cgi?id=10141
--- Comment #11 from maxime.besson@worteks.com maxime.besson@worteks.com --- Hi Quanah, I was able to reproduce this issue (or a very similar one) easily while investigating a production outage
* Start slapd somewhere (any version should work) * pkill -STOP slapd (will freeze the slapd service, simulating an unresponsive LDAP server, but still allowing TCP connections to succeed) * strace ldapsearch -H ldaps://slapd -d 1
(reports a single read() syscall hanging because the server is stuck)
* strace ldapsearch -H ldaps://slapd -d 1 -o network_timeout=5
(reports rapid-fire read() syscalls on the nonblocking socket)
I was able to reproduce this on the 2.6 branch with OpenSSL as well as a recent Debian system (2.5 branch + GnuTLS)