NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: select() timeout



On Mon, Feb 27, 2012 at 06:13:05PM +0000, Matthias Scheler wrote:
> On Mon, Feb 27, 2012 at 11:49:56AM -0500, Thor Lancelot Simon wrote:
> > > I've see select(2) blanking a huge portion of stack space under Linux
> > > because OpenSSL got a file descriptor number outside of FD_SETSIZE.
> > > The author of this bit of code had just like you assumed that nothing
> > > could go wrong when you use select(2) to handle a single file descriptor.
> > > 
> > > Newer version of OpenSSL use poll(2).
> > 
> > Where does OpenSSL use either?
> 
> When it wants to seed its own random number generator from "/dev/random"
> or "/dev/urandom". It is e.g. used to make sure that RAND_pseudo_bytes()
> always returns instead of waiting for entropy provided by the kernel.

Heh, I was *just* looking at that.  Thanks!

Thor


Home | Main Index | Thread Index | Old Index