> If you get SSL_ERROR_WANT_READ, you need to epoll/select for readability. If > you get SSL_ERROR_WANT_WRITE, you need to epoll/select for readability. >
I am assuming the above was a typo and you meant writeability for SSL_ERROR_WRITE. Ok. That's interesting. I actually followed the concept from non blocking tcp connect where you monitor the socket for both readability and writeability. So accordingly I had set epoll to: EPOLLIN | EPOLLOUT. Now making the above change definitely helped. So now, the while loop is executing once most of the time. But every once in a while (I connect to 100 servers every 1 second), the value goes up to close to 100. Any particular reason for that? ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org