apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jus...@erenkrantz.com>
Subject Re: apr_uuid_get() hanging on /dev/random
Date Sun, 07 Mar 2004 01:32:35 GMT
--On Saturday, March 6, 2004 3:34 PM -0800 Stas Bekman <stas@stason.org> wrote:

> We get reports from users that have troubles with apr_uuid_get. It blocks
> trying to read from /dev/random and never comes back (I suppose not enough
> entropy). No matter what the reason for this behavior, users come back to us
> complaining that our app doesn't work. Any suggestions how to make
> apr_uuid_get fail if /dev/random doesn't give back anything after a certain
> amount of time? Should apr_uuid_get/apr_os_uuid_get have a timeout + assert
> or failure code return?
>
> The very recent report came from a linux user on kernel 2.4.20
> linux canebas.org 2.4.20 #1 smp mon dec 2 10:47:41 pst 2002
> i686 athlon i386 gnulinux

Tell them to use --with-devrandom=/dev/urandom - however, that can't be our 
default as that's not secure.  Or, they can setup EGD and use --with-egd.

The real solution is getting Ben's PRNG in-tree.  However, we've decide to 
defer that until APR 1.1.  -- justin

Mime
View raw message