cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Locking and multi on multiple connections.

From: Michael Menegakis <arxeio_at_gmail.com>
Date: Wed, 8 Dec 2010 23:03:23 +0200

On Wed, Dec 8, 2010 at 10:20 PM, Dan Fandrich <dan_at_coneharvesters.com> wrote:
> On Wed, Dec 08, 2010 at 08:43:40PM +0200, Michael Menegakis wrote:
>> I notice an app I'm developing goes fine in terms of locking if
>> requests are being done at least 0.5-1 sec apart. However, if 2 or 3
>> are done simultaneously there's high probability of a short lock. This
>> is important in that app since it's a game.
>
> What locks are you talking about here? libcurl doesn't use any locks by
> default (except when using NSS), and in a single-threaded application
> you don't need to install things like OpenSSL or share locks.
>
>>>> Dan

It's on normal http.

I also noticed there may be a short hanging on the first first
request, probably when the first easy is being loaded to the multi.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-08