cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Endless loop on curl_multi_cleanup

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Oct 2016 08:30:21 +0200 (CEST)

On Sun, 2 Oct 2016, Dan Fandrich wrote:

> I'm not sure the right way to solve this. Should the forced-close bit be set
> on all connections first to make sure they're closed? Or does whole
> situation simply invalid because there aren't supposed to be any easy
> handles attached to the multi handle as curl_multi_cleanup() is called? The
> man page doesn't actually come right out and say that this isn't allowed,
> but does imply it.

I think the first approach or a version of that is the better. Because even if
we haven't explicitly stated that this works, it already does (mostly) so I
think we are likely to break more than one application if we enforce a check
there and refuse to perform.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-10-03