cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: keeping connection on multi_remove_handle for FTP

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Dec 2006 23:11:24 +0100 (CET)

On Fri, 22 Dec 2006, Armel Asselin wrote:

> now that I have a bit more experience with my own tool and the 'hard
> cancellation' (coded with a CURLE_CANCELED error code passed to
> curl_ftp_done, currently). this way seems rather acceptable, even
> performance-wise. what I would like is then to progress first on this,
> having something official and working. this thread is still interesting
> because we viewed the main problems i think and we could keep in archive for
> later improvements.
>
> so, from my point of view adding a simple test of the multi state wrt
> COMPLETED and setting some error code would OK for that purpose (which one?
> there is nothing very appealing in the list).

Sure. I think Curl_done() needs a new argument named "premature" or something
like that, so that protocols that care can get to know about it and act
accordingly.

Wouldn't that be good enough?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-12-22