home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: NCSA telnet to SUN goes to sleep
- Date: 26 Aug 1992 18:46:38 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 35
- Message-ID: <17gjieINN5k9@early-bird.think.com>
- References: <1992Aug26.043255.3898@engage.pko.dec.com>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <1992Aug26.043255.3898@engage.pko.dec.com> richard@adomcc.enet.dec.com (Richard Munn) writes:
- >Looking through the source code to NCSA telnet,there is a curious
- >comments in the bit of code that handles ACKs. It basically says that we
- >may get more ACK's than packets sent because of:
- >
- >"4.2's habit of sending those damn keepalive packets out everywhere."
- >
- >I assume it is referring to BSD 4.2. I know that NCSA telnet never
- >sends out 'keepalive packets' and as far as I know, a keepalive is not
- >required to keep a session open.
- >
- >Just to test this out, I fired off a script that pinged the PC every minute
- >and sure enough, the session never went to sleep.
- >
- >My question then is, does anyone know if SUN-OS requires a keepalive
- >packet to be sent out every so often ?
-
- It's not a system requirement, it's an option that the system provides to
- applications, and the SunOS telnet daemon uses this option. It allows it
- to detect when the client machine has crashed, so that it can close the
- connection.
-
- However, if this is causing NCSA Telnet to go to sleep, then the problem is
- probably in NCSA Telnet. A correct TCP implementation shouldn't have to do
- anything special to handle keepalive packets, since they're just ordinary
- packets. If it's not acknowledging them then it's a bug.
-
- I don't understand why sending pings prevents this. ICMP Echo packets
- should be transparent to TCP applications. Seems to me that NCSA Telnet
- has some serious modularity problems if pings affect telnet sessions.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-