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: Strange very long time in curl_multi_cleanup() after an SSL request

From: Rainer Canavan via curl-library <>
Date: Mon, 13 Nov 2023 15:03:12 +0100

On Thu, 9 Nov 2023, Frédéric BOITEUX via curl-library wrote:

> I'm using libcurl in a C program to perform various web operations. I'm
> using the 'multi' interface to be able to run multiple concurrent requests,
> in an asynchronous manner. I'm working on Linux Debian systems, and I
> recently tried to migrate my program from a Debian 11 to Debian 12 version,
> with libcurl updated from 7.74 to 7.88 version. With this 'new' version,
> I've experienced an unexpected behaviour: sometimes, when closing my app
> [and libcurl], the call to curl_multi_cleanup() takes a [very] long time,
> more than 5 minutes !! After some tests, I could reproduce it doing an
> HTTPS request, then terminating.

If you can, get a few gdb backtraces while curl_multi_cleanup() is
running, or possibly just start with strace, which is much easier, but
less likely to show anything helpful.

Received on 2023-11-13