curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. 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 himself.

Re: Easy Reuse across Multiple Multi Handles

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 26 Jul 2020 12:31:32 +0200 (CEST)

On Thu, 9 Jul 2020, Damon Earp via curl-library wrote:

> After curl_multi_info_read says a request is complete, does the easy handle
> still hold the connection?

No it doesn't.

When using the multi interface, the pool of connections is held by the multi
handle and it gets shared and used by all the easy handles that are added to
the multi handles. When a transfer is done, the connection will be help alive
(if possible) even if you remove and cleanup an individual easy handle.

> Then using the easy in a different multi would cause the connection to be
> closed?

Nope. When you remove the easy handle from a multi handle, it is disassociated
with any previously used connection.

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-07-26