cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: timeout when you unplug the ethernet cable?

From: Christoph Rupp <crupp_at_umc-web.de>
Date: Tue, 21 Dec 2004 10:23:47 +0100

Hi Dan,

Dan Fandrich wrote:
> It's probably a TCP failure that is ultimately closing your connection.
> If it's Linux you're using, you could try using sysctl to set different
> values for net.ipv4.tcp_retries2 and net.ipv4.tcp_retries1 to make TCP
> abort faster, but beware that this effects all networking applications
> on your system.

i don't really want to touch the system-wide settings... is it possible
to implement timeouts with sigalarm or a timer or something similar?

chris
Received on 2004-12-21