Re: [ANN] unicorn 3.6.0 - HTTP server for fast clients and Unix
- From: Eric Wong <normalperson@xxxxxxxx>
- Date: Tue, 26 Apr 2011 18:15:30 -0500
Eric Wong <normalperson@xxxxxxxx> wrote:
If you're too lazy to upgrade, you can just do this in your after_fork
hooks:
after_fork do |server,worker|
tmp = srand
OpenSSL::Random.seed(tmp.to_s) if defined?(OpenSSL::Random)
end
That was broken and made the problem worse, do this instead (or upgrade
to 3.6.1):
after_fork do |server,worker|
srand
OpenSSL::Random.seed(rand.to_s) if defined?(OpenSSL::Random)
end
This is why ruby-core should fix these problems because application
authors like me are too clumsy to be trusted :)
--
Eric Wong
.
- References:
- [ANN] unicorn 3.6.0 - HTTP server for fast clients and Unix
- From: Eric Wong
- [ANN] unicorn 3.6.0 - HTTP server for fast clients and Unix
- Prev by Date: [ANN] unicorn 3.6.1 - HTTP server for fast clients and Unix
- Next by Date: including Enumerable in PStore
- Previous by thread: [ANN] unicorn 3.6.0 - HTTP server for fast clients and Unix
- Next by thread: error: undefined method
- Index(es):