On Mon, Jun 26, 2006 at 12:25:09PM +0200, Leon wrote:
> On Mon, 2006-06-26 at 11:44 +0200, Bodo Moeller wrote:

>> What is the file descriptor number that you observe during these
>> calls?

> The file descriptor is 1507 which seems correct since each thread opened
> a socket.

>> Can a single-threaded application handle that many files (and
>> still do select()) on whatever OS platform it is that you're using?

> I did increase the file descriptor to 1000000 using ulimit
> and /proc/sys/fs/max-file

This does not increase FD_SETSIZE, though.

It is probably an OpenSSL bug to try select() without considering
FD_SETSIZE, but RAND_poll(), where you encounter these problems, is
just OpenSSL's last resort when trying to seed its pseudo-random
number generator (PRNG).  The best thing to do is to have your
application initialize the PRNG with some high-quality randomness
before you start additional threads by using RAND_add() or
RAND_seed(); then OpenSSL won't have to use RAND_poll() in the first
place.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to