perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: how to raise entropy
Date Wed, 22 Dec 2004 23:28:25 GMT
Jie Gao wrote:
> On Wed, 22 Dec 2004, Stas Bekman wrote:
>>Date: Wed, 22 Dec 2004 18:11:30 -0500
>>From: Stas Bekman <>
>>To: mod_perl Dev <>
>>Subject: how to raise entropy
>>The story goes like this, I run a smoke of some 70+ mp2 configurations
>>every other night, and very often I had the test suite hang on startup.
>>when I'd run things manually everything will work just fine.
>>most of the time the error log will stop at:
>>[Wed Dec 22 03:57:01 2004] [notice] Digest: generating secret for digest
>>authentication ...
>>so what I suspect is that Apache tries to get data from /dev/(u?)random
>>which blocks if it doesn't have enough entropy and hence we timeout. Now
>>when I tap-tap-tap on my keyboard the entropy is happily generated, though
>>when I'm asleep and nothing happens on my notebook the entropy device has
>>not enough inputs to satisfy the software demands. Of course this is just
>>an idea. I should have really run the nightly smoke with strace to see
>>where it blocks for real.
>>So any idea how to feed the entropy device, other than waking up every 15
>>minutes to hug my notebook?
>>This can also help this problem reported not once by users:
> Use /dev/urandom, which will not block.

It's not us who uses it, but Apache, so it's not under our control. Notice 
that Digest: generating secret for digest authentication ... is coming 
from an apache module.

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message