curl / Mailing Lists / curl-library / Single Mail

curl-library

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

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
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 https://github.com/curl/curl/pull/3598

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-02-21