home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / misc / 3935 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  2.0 KB

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