cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

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

File upload with ASP.NET