cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_pause bugs

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 5 Sep 2008 11:12:45 +0200 (CEST)

On Thu, 4 Sep 2008, Dmitriy Sergeyev wrote:

> And I've got another question, regarding the behavior of curl_easy_pause().
> In case of continue of paused operation with data it calls write-callback
> immediately. And if callback returns error, only curl_easy_pause() returns
> failure code, but the transfer itself not fails and ignores this
> write-callback failure.

Oh, yeah that's certainly a bug.

> Furthermore, as for me, I think curl_easy_pause() shouldn't return error
> codes on write-callback failures at all. May be the behavior will be more
> transparent if curl_easy_pause() affects only the state of transfer, even if
> it calls write-callback. But any transfer-related failure reveals only after
> curl_multi_perform() call, as usual.

I agree. Any chance you can write up a patch for this?

-- 
  / daniel.haxx.se
Received on 2008-09-05