cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems with Windows Binaries

From: David Graf <david.graf_at_28msec.com>
Date: Thu, 28 Oct 2010 21:46:22 +0200

Man, you are my hero! It works! I commented out the RAND_screen() call in ssluse.c line 692, and my program is as fast as it used to be!

Thanks a lot.

David

On Oct 28, 2010, at 9:07 PM, Pierre Joye wrote:

> 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

------------
David Graf
Software Architect

28msec Inc.
http://www.28msec.com/
http://twitter.com/28msec
------------

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-28