Re: How to reset cURL handle?

From: Vladimir Ch. <>
Date: Thu, 29 Aug 2013 01:41:36 -0700

On Thu, Aug 29, 2013 at 12:13 AM, Daniel Stenberg <> wrote:

> On Wed, 28 Aug 2013, Vladimir Ch. wrote:
> I've been simply discarding the old curl handle (after removing it from
>>> the multi) and creating a new one.
> 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!

Wow, interesting...

So what's the value of having this reset() function then? Just to avoid
destroying and recreating a python object?

Btw, I tried using pycurl from the development tree, and it seems to be
working (i.e., not causing an error when calling Curl.reset()). Strangely,
it does report itself as version 7.19.0 still, not 7.19.1, when listing
with pip freeze.


Received on 2013-08-29