cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Real-time data transfer: curl_easy_pause?

From: Julien <eldebaran_at_gmail.com>
Date: Wed, 28 Sep 2011 14:11:26 +0200

Thank you for the quick answer, Daniel.

On 28 September 2011 13:15, Daniel Stenberg <daniel_at_haxx.se> wrote:
> If you do it for FTP, make sure SIZE won't return any size for the file.

Yep, thanks!

> In general, libcurl won't care for how fast or slow you actually send the
> file. Once the transfer has started, libcurl will just sit waiting for more
> data. If you send data slowly, then libcurl will receive it slowly.

You mean that I just have to block in the read callback until some
more data is available? Do you confirm that I have to dedicate a
thread to this?

>> I looked on CURL_WRITEFUNC_PAUSE and curl_easy_pause but I am not sure how
>> to use these features for my use case.
>
> I don't think you should use that feature at all. Just let the transfer be
> slow.

Out of interest, for what kind of use case is this feature useful?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-28