cURL / Mailing Lists / curl-library / Single Mail


Re: Removed FTP handle used during curl_multi_cleanup.

From: Mike Crowe <>
Date: Mon, 19 Oct 2009 15:04:20 +0100

On Thu, Oct 15, 2009 at 12:22:18PM +0100, I wrote:
> When used with FTP URLs I'm seeing libcurl 7.19.6 calling the function
> registered with CURLOPT_HEADERFUNCTION during curl_multi_cleanup for
> the "221 Goodbye." when closing the FTP session. This happens despite
> me removing the handle with curl_multi_remove_handle. Is it expected
> that curl_multi_cleanup can use a handle once it has been removed?

I managed to work around the problem by inserting a call to
curl_easy_reset so that the sequence is now:



List admin:
Received on 2009-10-19