cURL / Mailing Lists / curl-library / Single Mail


Re: Endless loop on curl_multi_cleanup

From: Daniel Stenberg <>
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.

List admin:
Received on 2016-10-03