> There needs to be a call to fcntl(fd,F_SETFL,O_NONBLOCK) just after
> the socket() call and error status check.
>
> -Kyle H


That will just waste CPU. The code will spin in each loop "while (!success)" loop until it gets what it wants. It will still not return any time soon, but will do so at 100% CPU instead of 0% CPU.

Unless I'm missing something.

DS


__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org