cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to obtain a 'unique authentication context' in libcurl?

From: Ellié Computing Open Source Program <opensource_at_elliecomputing.com>
Date: Mon, 30 Jul 2012 20:47:05 +0200

>From: Joe Mason
>> From: curl-library-bounces_at_cool.haxx.se
>> [curl-library-bounces_at_cool.haxx.se] on
>> behalf of Ellié Computing Open Source Program
>> [opensource_at_elliecomputing.com]
>>
>> this option is a bit of the kind "one to rule them all"... because it
>> indeed
>> cover all the cases where the developer knows connection reuse is
>> unpractical, its name might be generalized to
>> 'CULROPT_REUSE_GENERATION'...
>> by the way, when the user increments the value for each request it
>> actually
>> does the same as FRESH_CONNECT, letting libcurl unused handles.
>
>Could the caller not just keep track of the "reuse generation" and set
>FRESH_CONNECT on handles after it changes?
it does not seem possible that way because the "reuse generation" that could
be associated through the private data to the new CURL* needs to be compared
to something in the actual connection and this information is not available
at all in libcurl (as it would be discarded when un-linking the actual
connection from the previous CURL*).

Armel

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-30