curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: How to properly re-use an easy handle having CURLOPT_CONNECT_ONLY=1?

From: Ray Satiro via curl-library <curl-library_at_lists.haxx.se>
Date: Fri, 31 Jan 2025 01:21:45 -0500

On 1/31/2025 1:11 AM, Ray Satiro wrote:
> On 1/14/2025 7:02 AM, Aleksander Mazur via curl-library wrote:
>> I apparently misunderstood this paragraph as a hint of how libcurl works
>> internally (that it simply won't reuse the underlying connection) rather than
>> "application MUST NOT pass such easy handle to curl_easy_perform again".
>
> For anyone who followed this thread please note we ended up fixing the
> issue. curl 8.12.0 (coming on Feb 5) will allow reuse of a
> connect-only easy handle. [1]
>
>
> [1]: https://github.com/curl/curl/commit/4f99efb1
>

It occurs to me I should clarify that it is already possible to reuse
connect-only easy handles in a multi with curl_multi_remove_handle ->
curl_multi_add_handle. What the fix allows is reusing connect-only easy
handles with curl_easy_perform.


-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-01-31