On Wed, Nov 3, 2010 at 9:12 AM, David Schwartz <dav...@webmaster.com> wrote:
> On 11/2/2010 6:25 PM, Md Lazreg wrote:
>
>> r=select(m_sock_fd + 1, &fds, 0, 0, ptv);
>> if (r <= 0 && (Errno == EAGAIN || Errno == EINTR))/*if we timed
>> out with EAGAIN try again*/
>> {
>> r = 1;
>> }
>
> This code is broken. If 'select' returns zero, checking errno is a mistake.
> (What is 'Errno' anyway?)
>
> [SNIP]
>
> Is the server multithreaded? If so, I could see this as mere laziness (or,
> efficient use of coding resources to be more charitable) rather than actual
> poor design.
lol....
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org