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 15:02:21 +0200

On 28 September 2011 14:53, Daniel Stenberg <daniel_at_haxx.se> wrote:
> Aha. But right, the same logic applies in the other direction. You can wait
> in your read callback until data arrives.
>
> You might have a reason to use the pausing approach instead if you want to
> keep the progress callback going or similar.
>
> If you end up doing very long waits or pauses (many minutes), you should
> probably consider using TCP_KEEPALIVE at some interval so that firewalls and
> NATs and what not don't go playing tricks on your connections. Of course
> depending where and how you run your application.

OK, thank you!
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-28