https://bugs.openldap.org/show_bug.cgi?id=10141
--- Comment #12 from maxime.besson@worteks.com maxime.besson@worteks.com --- Created attachment 1035 --> https://bugs.openldap.org/attachment.cgi?id=1035&action=edit prevent busyloop when socket was set to nonblocking by network_timeout option
I believe this patch might fix the issue by polling the socket before attempting a read. This is previously only performed in async mode. But setting a timeout also causes the socket to be nonblocking.
I renamed the async variable for clarity