curl-library
Re: curl_multi_perform usage & easy handle "reset"
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 11 Aug 2007 16:55:26 +0200 (CEST)
Date: Sat, 11 Aug 2007 16:55:26 +0200 (CEST)
On Sat, 11 Aug 2007, Davide Pippa wrote:
> The only API improvement I would propose could be a function that changes
> the multi state from the blocking states (CURLM_STATE_COMPLETED or
> CURLM_STATE_CANCELLED) to the state CURLM_STATE_INIT, doing the various
> initializations; a sort of fusion of remove/add functions without the linked
> list management.
I've been pondering on allowing curl_multi_add_handle() on an already added
handle to do exactly that: reset the state and thus restart the transfer.
Currently, calling curl_multi_add_handle() on an already added handle will
result in CURLM_BAD_EASY_HANDLE getting returned.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-08-11