Re: [PATCH] Some curl versions lack curl_easy_duphandle()
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 17, 2005, 18:54 UTC
- Message-ID
- <Pine.LNX.4.63.0510172049330.14782@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20051017180130.GJ5509@reactrix.com>
Hi,
On Mon, 17 Oct 2005, Nick Hengeveld wrote:
Show 6 quoted lines
> On Sun, Oct 16, 2005 at 02:50:18PM -0700, Nick Hengeveld wrote: > > > Is that the correct version number? I've been using 7.10.6 and > > curl_easy_duphandle() has been working fine. > > Apart from the version number question, this patch looks good.
Aaargh! Of course I was looking at the annotate output, which said Nov 9, 2004. But this is just the last change to the signature of the function!
So, AFAIK Sep 13, 2001, is the correct date, and 0x070900 is the version.
> Although I'm now wondering whether it makes sense to bother trying to > use curl_easy_duphandle() at all and always use get_curl_handle() > instead.
There might well be a substantial overhead involved. I haven't measured it, but it seems reasonable to assume that duplicating a handle is implemented using a shorter code path than creating a handle all over again.
Ciao, Dscho