curl / Mailing Lists / curl-library / Single Mail


Re: libcurl hangs in curl_multi_cleanup

From: Daniel Stenberg via curl-library <>
Date: Thu, 18 Apr 2019 09:46:58 +0200 (CEST)

On Wed, 17 Apr 2019, Firefox OS via curl-library wrote:

> The program logs in to an imaps:// server (using CURLOPT_CONNECT_ONLY), then
> enters idle mode using curl_easy_send and receives answer using
> curl_easy_recv. Then sleeps for a few seconds and tries to clean up
> everything and quit. I followed the order given at
> but still
> curl_multi_cleanup() doesn't exit for a long time.
> The issue occurs on libcurl-7.61.1 as well as on latest release curl-7.64.1.
> Am I doing something wrong, or is it a bug?

It looks like a bug. I would guess because of the CONNECT_ONLY + IMAP

After a CONNECT_ONLY connection, the shut down if that connection can't be
done by the IMAP rules anymore since libcurl has lost the IMAP state and it
can only really diconnect the connection.

I'll look into it.

Received on 2019-04-18