On Wed, Feb 9, 2011 at 19:51, Tolas Anon <[email protected]> wrote:
> curl_exec() to localhost : works like a charm, for a 1hr request.
>
> curl_exec() to internet domain name of localhost (port forwarding from
> adsl modem to localhost enabled) : still running, does appear as
> frozen as in the original request for help.

That sounds like you're behind a NAT'ed firewall. Quiet connections
will often go dead (by the firewall) in an hour or less (I've seen 30
minutes on some).  My ssh tunnel connections always use a 'ping -i
localhost 600' on the tunnel-setup ssh to keep the connections up.

You may instead try to set the TCP option SO_KEEPALIVE (see 'man
socket') to see if it helps.

-Tor
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to