Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Timeout problems...

From: Ramin Dousti <ramin(at)cannon.eng.us.uu.net>
Date: Mon May 12 2003 - 12:20:00 EDT

I had a similar problem. The problem is that the keepalives use SO_KEEPALIVE of socket option which is at least 2hrs:

/proc/sys/net/ipv4/tcp_keepalive_time == 7200 (default)

What you need to do is to patch the source with the "Heartbeat" patch at:

http://www.sc.isc.tohoku.ac.jp/~hgot/sources/openssh-watchdog.html

It sends an SSH null message periodically. This should take care of your "2 hours to reconnect" problem.

As for "up to 3 minutes to timeout", it is the TCP connection setup timeout while waiting for a syn-ack. You can play with:

/proc/sys/net/ipv4/tcp_syn_retries
/proc/sys/net/ipv4/tcp_retries1

Do you need help?X

to reduce this timeout. In general the default behavior should be acceptable, though.

Ramin

On Sun, May 11, 2003 at 10:39:01AM +0300, Stephen Biggs wrote:

> I am running Redhat 8.0/openssh with ssh -V:
Received on Mon May 12 12:58:17 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:58 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library