lkml.org 
[lkml]   [2001]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Hour long timeout to ssh/telnet/ftp to down host?
Date
On Wednesday 13 June 2001 05:40, Luigi Genoni wrote:
> On Tue, 12 Jun 2001, Ben Greear wrote:

> > You can tune things by setting the tcp-timeout probably..I don't
> > know exactly where to set this..
>
> /proc/sys/net/ipv4/tcp_fin_timeout
>
> default is 60.

Never got that far. My problem was actually tcp_syn_retries. Remember, I was
talking to a host that was unplugged. (I wasn't even getting "host
unreachable" messages, the packets were just disappearing.) The default
timeout in that case is rediculous do to the exponentially increasing delays
between retries. 10 retries wound up being something like 20 minutes.

I set it to 5 and everything works beautifully now. ssh (which retries the
connection 4 times, and used to take over an hour to time out) now takes just
over 3 minutes, which I can live with.

Rob
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.061 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site