cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Persistent connections with libCurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 28 Apr 2010 20:05:35 +0200 (CEST)

On Wed, 28 Apr 2010, Rahul R wrote:

> We have multiple threads writing lots of data to a host. Hence, i would
> prefer using multiple handles.If i use a single handle, the other threads
> will have wait until the one using it frees it up.

Yes, unless you use the multi interface.

> But even with multiple handles, i will be able to achieve persistent
> connections, right ?

Each handle works that way. If you have multiple ones at the same time, they
all will work that way but independently of each other.

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