I'm using "Library: OpenSSL 0.9.8l 5 Nov 2009" on Windows 7. RAND_Poll is taking a -very- long time to complete (~80 seconds) on my process which only has 80MB (or so) allocated. By sampling the stack, I can see RAND_Poll is walking the Win32 Heap. This problem occurs with many tiny allocations instead of few large allocations.
I bumped my head on this while profiling a Ruby on Rails application of all things - the first request would hang for almost two minutes. What is the right way to fix this? Modify the Ruby openssl module to call RAND_Poll as soon as it initializes OpenSSL? Fix RAND_Poll to walk fewer steps on the Heap? Fix RAND_Poll to walk faster? Fix RAND_Poll to use some other strategy for its task than Heap walking? You can see the theme here, which caused me to file this request. I also filed it with Ruby, however, just in case: http://redmine.ruby-lang.org/issues/show/2721 -Greg ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
