cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems with Windows Binaries

From: Pierre Joye <pierre.php_at_gmail.com>
Date: Thu, 28 Oct 2010 21:07:50 +0200

hi,

On Thu, Oct 28, 2010 at 10:29 AM, David Graf <david.graf_at_28msec.com> wrote:
> application, the execution is 5x slower.
> Can someone help me, please?

If you have the same issue we met with php, then here is a possible solution:

The problem occurs actually during the initialization. OpenSsl insists
on getting part of the RNG entropy using the desktop on Windows. This
operation can be very slow, even worst if the user running this
process has no desktop access.

On recent windows versions the Crypt API is crypto safe and can be use
safely to get an entropy.

A quick fix is to remove the call to RAND_screen() and the performance
impact on init should be gone.

Cheers,

-- 
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-28