cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Command channel hangs after upload.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 27 Jan 2007 22:52:08 +0100 (CET)

On Sat, 27 Jan 2007, Stefan Eilers wrote:

>> Sending a NOOP over the control connection every N minute/second is indeed
>> a good idea to help circumventing this problem, but libcurl has no support
>> for this currently.
>
> Do you have any hint, how to implement this?

Sure. If N seconds has passed without traffic on the control connection, send
"NOOP<cr><lf>" and make sure you deal with the response (or lack of it)
appropriately.

> The best solution would be to do this witout altering libCurl itself.

That's not possible. libcurl does not support this feature.

> Our first idea was to send a "NOOP" via curl_easy_perform() within the
> progress callback function.

That's not possible with the libcurl API.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-01-27