curl / Mailing Lists / curl-library / Single Mail


Re: curl_multi: SOCKETFUNCTION is called to POLL_REMOVE after socket was already closed

From: Ray Satiro via curl-library <>
Date: Thu, 21 Feb 2019 16:18:18 -0500

On 2/21/2019 3:19 AM, Pavel Löbl via curl-library wrote:
> I think I've identified the code path. It all starts in
> Curl_disconnect. At first Curl_conncache_remove_conn unlinks easy
> handle from connectdata structure then conn_free is called. conn_free
> calls Curl_closesocket which calls Curl_multi_closed. However
> Curl_multi_closed expects there is still easy handle associated so it
> does nothing (not calling SOCKETFUNCTION). Control is returned to
> Curl_multi_closed where socket is closed. Later the SOCKETFUNCTION is
> called probably from singlesocket function.

Can you please try

Received on 2019-02-21