Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Problems with Windows Binaries

From: David Graf <>
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.


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

> hi,
> On Thu, Oct 28, 2010 at 10:29 AM, David Graf <> 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 | |
> -------------------------------------------------------------------
> List admin:
> Etiquette:

David Graf
Software Architect

28msec Inc.

List admin:
Received on 2010-10-28

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET