cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Command channel hangs after upload.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 Jan 2007 08:56:17 +0100 (CET)

On Mon, 29 Jan 2007, Dan Fandrich wrote:

> 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.

If you're lucky, yes. The TCP KEEPALIVE option is often a two hour thing and
I've been exposed to more than one NAT and firewall that time out connections
a lot earlier than so.

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