curl-and-python

Re: How to reset cURL handle?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 29 Aug 2013 12:26:48 +0200 (CEST)

On Thu, 29 Aug 2013, Vladimir Ch. wrote:

>> 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!
>
> So what's the value of having this reset() function then? Just to avoid
> destroying and recreating a python object?

You can also use the easy handles with the easy interface, and in that case
the connection cache (and a few other caches) is kept within the easy handle
so then reset will be more valuable.

-- 
  / daniel.haxx.se
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2013-08-29