curl-and-python

Re: How to reset cURL handle?

From: Wim Lewis <wiml_at_omnigroup.com>
Date: Wed, 11 Sep 2013 23:22:04 -0700

On 29 Aug 2013, at 12:13 AM, Daniel Stenberg wrote:
> On Wed, 28 Aug 2013, Vladimir Ch. wrote:
>> I want to take advantage of connection reuse.
>
> libcurl holds the connection cache within the multi handle, so you won't lose the ability to do connection re-use even if you close and re-create easy handles between transfers!

That's good to know! Maybe the libcurl(3) manpage should be updated to reflect this--- currently it sort of implies the opposite:

> To allow libcurl to take full advantage of persistent connections, you should do as many of your file transfers as possible using the same curl handle. When you call curl_easy_cleanup(3), all the possibly open connections held by libcurl will be closed and forgotten.

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2013-09-12