Dnia 2025-01-14, o godz. 08:07:19
Daniel Stenberg <dan...@haxx.se> napisaƂ(a):

> As documented in the CURLOPT_CONNECT_ONLY man page which seems relevant since 
> your example code uses it:
> 
>    Transfers marked connect only do not reuse any existing connections and
>    connections marked connect only are not allowed to get reused.
> 

Thanks for pointing this out.

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".

So let's say I call curl_easy_cleanup + curl_easy_init before each
reconnection. Will libcurl reuse old TLS context and resolver cache?

-- 
Aleksander Mazur
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to