Jump to ID:
Networking

Project Home

Discussions

Wiki

Project Info
Forum Topic - telnetd - timeout after abnormal client exit: (3 Items)
   
 
 
telnetd - timeout after abnormal client exit  
6.3.2 PPC

Customer asks:

"
Now, when a telnet session established, if the client exit abnormally, such as plug out the network cable, the telnetd 
will wait a long time to close the session.

Can we set the telnetd’s timeout? It’s important for us.
"

Is there anything specific to telnet here, or a sysctl to the IP stack ?

Thanks !

Dave
RE: telnetd - timeout after abnormal client exit  
The telnetd uses "keep_a_live" to make the decision in this case (client
gone without any FIN), so it normaly is of order of few ten minutes (a
few hours?). Can the "sysctl -w net.inet.tcp.keepidle=A_value" may
change the keep a live value? But it sounds not a good solution as even
it work, it affects the whole networking stack. 

Thanks
Weijie
 

-----Original Message-----
From: Dave Bott [mailto:community-noreply@qnx.com] 
Sent: April 20, 2009 11:58 AM
To: technology-networking
Subject: telnetd - timeout after abnormal client exit

6.3.2 PPC

Customer asks:

"
Now, when a telnet session established, if the client exit abnormally,
such as plug out the network cable, the telnetd will wait a long time to
close the session.

Can we set the telnetd's timeout? It's important for us.
"

Is there anything specific to telnet here, or a sysctl to the IP stack ?

Thanks !

Dave

_______________________________________________
Technology
http://community.qnx.com/sf/go/post27503
Re: telnetd - timeout after abnormal client exit  
On Mon, Apr 20, 2009 at 11:57:57AM -0400, Dave Bott wrote:
> 6.3.2 PPC
> 
> Customer asks:
> 
> "
> Now, when a telnet session established, if the client exit abnormally, such as plug out the network cable, the telnetd
 will wait a long time to close the session.
> 
> Can we set the telnetd???s timeout? It???s important for us.
> "
> 
> Is there anything specific to telnet here, or a sysctl to the IP stack ?

Telnetd uses the SO_KEEPALIVE option.  The net.inet.tcp.keepidle
sysctl controls this but it's a global knob.

-seanb