cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Command channel hangs after upload.

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 29 Jan 2007 16:49:58 -0800

On Sat, Jan 27, 2007 at 10:52:08PM +0100, Daniel Stenberg wrote:
> On Sat, 27 Jan 2007, Stefan Eilers wrote:
> >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.

What about enabling TCP keep alive (SIOCSKEEPALIVE) on the control channel
in the CURLOPT_SOCKOPTFUNCTION callback? That should be enough to keep a
NAT happy and the connection open.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-01-30