cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: libcurl multi handle persistent connections (Tejas Shah)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 23 Nov 2011 22:49:00 +0100 (CET)

On Wed, 23 Nov 2011, Tejas Shah wrote:

> So I allow these 10 requests to complete on their 10 separate connections,
> then I remove and cleanup the easy handles, then init 10 new easy handles
> and set their options to talk to the same server. I add these 10 handles to
> the same multi handle and do another curl multi perform. Why am I seeing
> that this opens 10 new connections instead of reusing the original 10?

That's not possible to tell without more information. To repeat myself: You
can make the connection not re-usable depending on what options you set, what
your program does and depending on what the server does.

Can you tell us more details like HTTP header logs, or perhaps showing us a
sample code that repeats the problem?

I assume you're using a recent libcurl?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-23