home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / ultrix / 8866 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  2.0 KB

  1. Xref: sparky comp.unix.ultrix:8866 comp.protocols.tcp-ip:5603
  2. Path: sparky!uunet!mcsun!sunic!dkuug!stl.dk!jbn
  3. From: jbn@stl.dk (Jens Bloch Nielsen)
  4. Newsgroups: comp.unix.ultrix,comp.protocols.tcp-ip
  5. Subject: ULTRIX 4.2A rsh- or TCP/IP-problem.
  6. Message-ID: <Bz8tqE.LKL@stl.dk>
  7. Date: 14 Dec 92 09:44:37 GMT
  8. Organization: Soeren T. Lyngsoe, Hoersholm, Denmark
  9. Lines: 52
  10.  
  11. We have some DECstation 5000/125 and DECsystem 5000/200 running 4.2A 
  12. connected by ethernet (TCP/IP). When we try execute a remote shell (rsh) 
  13. from one system to another in order to run a command (a script or a 
  14. system-command), the rsh sometimes hangs (never exits). The command 
  15. or script is always executed as expected, but the rsh never exits.
  16.  
  17. A netstat shows that the TCP/IP-connection is not closed correctly. 
  18. There is a CLOSE_WAIT on the local machine (the system from which the 
  19. rsh was issued) and a FIN_WAIT_2 on the remote system.
  20.  
  21. This indicates that the connection has been closed on the remote machine 
  22. but the local machine never receives the close-ack.
  23.  
  24. Example:
  25.  
  26. If we issue the following command on the system tst05:
  27.  
  28.     rsh tst01 dobackup.x
  29.  
  30. Dobackup.x is a script that executes find-commands and rcp-commands 
  31. on tst01/tst05.
  32.  
  33.  
  34. a netstat after termination of the script on tst01 and tst05 shows (not
  35. all tcp-connections shown):
  36.  
  37. tst05:
  38.  
  39. Active Internet connections
  40. Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
  41.     ..
  42.     ..
  43. tcp        0      0  tst05.1020             tst01.1021             CLOSE_WAIT
  44. tcp        0      0  tst05.1021             tst01.shell            CLOSE_WAIT
  45.     ..
  46.     ..
  47.  
  48. tst01:
  49.  
  50. Active Internet connections
  51. Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
  52.     ..
  53.     ..
  54. tcp        0      0  tst01.1021             tst05.1020             FIN_WAIT_2
  55. tcp        0      0  tst01.shell            tst05.1021             FIN_WAIT_2
  56.     ..
  57.     ..
  58.  
  59.  
  60. Does anyone know this problem and perhaps a method to avoid it. ??
  61. Is there bug in a ultrix systemcall (used by rsh), rsh or TCP/IP
  62. that could cause this problem ??
  63.