Link to home
Start Free TrialLog in
Avatar of vatsasri
vatsasri

asked on

session timeout.

I have 7.1 RedHat. Normally when I run a script under a telnet session through a windows client, the connection of telnet will be timed out. Due to this even windows hangs sometime. Is there any option to increase the timeout option under 7.1?
Avatar of ahoffmann
ahoffmann
Flag of Germany image

this is a kernel setting, AFAIK in /proc/sys/net/ipv4/tcp_keepalive_time
default is 2 houres (7200 seconds), usually
You may change it like:

echo 14200 > /proc/sys/net/ipv4/tcp_keepalive_time
Avatar of jlevie
jlevie

I don't think the tcp_keepalive_time is what's causing the telnet timeouts. I've had open telnet session between my 7.1 boxes for days on occasion. I'd suspect that there's something between the windows client and the Lnix system that's got an idle timer, like a firewall. Also be aware that the default bash shell doesn't have an idle timer, but tcsh does.
.. tcp_keepalive_time could be one reason, autologout in tcsh another, and so on ...
I agree with jlevie, (UNIX's) TCP/IP has no timeout usualy, unless the OS specifies one (like Solaris).
Avatar of vatsasri

ASKER

I tried with tcp_keepalive_time and it did not work. Any other option, regarding setting up under Windows, I dont think there is any settings under windows, if there is any let me know.
Avatar of The--Captain
Also, session timeouts on masqueraded/NAT connections can do this as well (at least, that's what always kills _my_ ssh sessions ;-).

Just another thing to check.

-Jon

BTW, M$ telnet is buggy.
Also give TeraTerm a try (supports ssh too).
  http://hp.vector.co.jp/authors/VA002416/teraterm.html
vatsasri:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
ASKER CERTIFIED SOLUTION
Avatar of soulmate022700
soulmate022700

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
keep alive options won't help if the kernel drops the connection, that's what the kernel thing is for ;-)
Daaaaaamn - that was open so long my comment became irrelevant (with the advent of iptables).  I stand amazed.

Cheers,
-Jon