home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9788 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  3.2 KB

  1. Path: sparky!uunet!mcsun!uknet!cam-eng!gc
  2. From: gc@eng.cam.ac.uk (G. Chand)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: TCP/IP works (yippee) but still some problems : -(
  5. Summary: TCP/IP 0.8 fixes for hanging FTP and TELNET
  6. Keywords: TCP/IP, net, ethernet, telnet, ftp
  7. Message-ID: <1992Sep3.235810.4024@eng.cam.ac.uk>
  8. Date: 3 Sep 92 23:58:10 GMT
  9. References: <1992Sep2.201059.25216@newshub.ccs.yorku.ca>
  10. Sender: gc@eng.cam.ac.uk (G. Chand)
  11. Organization: cam.eng
  12. Lines: 65
  13. Nntp-Posting-Host: club.eng.cam.ac.uk
  14.  
  15. In article <1992Sep2.201059.25216@newshub.ccs.yorku.ca>, nealstep@nexus.yorku.ca (Neal Stephenson) writes:
  16.  
  17. |>     I installed the tcp/ip package and it compiled without errors.
  18. |> I then increased the number of pty's to 64 and mknod'ed all of them,
  19. |> under the assumption that each telnet in used up one (is this right?).
  20. |> I then rebooted.
  21. |>     I can now ftp out of the system perfectly, it works great and
  22. |> since that was the main use, I am very happy (congrats to all
  23. |> concerned). :-) :-) :-)
  24. |>     However, if I ftp in I hang. 
  25.  
  26.    There is a bug in the TCP/IP 0.8 code. The following two lines alleviate
  27. the problem - in file tcp.c :
  28.  
  29.     in cleanup_rbuf() change 
  30.         if (sk->timeout != TIME_WRITE)
  31.         
  32.     to
  33.         if ( (sk->timeout != TIME_WRITE) && 
  34.         (sk->state == TCP_ESTABLISHED) )
  35.  
  36.    While you're in that file you should also change a typo in tcp_close() so
  37. that you have:
  38.  
  39.     sk->time_wait.len = TCP_WRITE_TIME;
  40.     sk->timeout = TIME_WRITE;
  41.  
  42. about 20 lines from the end of the function.
  43.  
  44.    FTP will still hang for a few seconds, however, but a few seconds is better
  45. than eternity IMHO ;-)
  46.  
  47. |> Also telnetting out connects to
  48. |> the host and then locks up the keys at the password prompt. you can
  49. |> however send a ctrl-d to end the login attempt (if it's a unix box) or
  50. |> a ctrl-z for a vax, strange.
  51. |>     for telnetting in the same kind of problems are encountered.
  52. |> if you telnet in to an account that has no passwd (horrible securety,
  53. |> i know) it works fine. but if you try one that has a password it locks
  54. |> up on the password prompt.
  55. |>     last few points. perhaps they are relevant. telneting out is
  56. |> very stacatto get packets then nothing then packet. and after telneting
  57. |> in when you log out it does not remove the name from the active users
  58. |> list.
  59.  
  60. The above fixes do not help this problem. We have traced it down to an ECHO
  61. disable request which has no corresponding ECHO re-enable. No password means
  62. no ECHO disable and hence no problem! Telnetd probably needs a recompilation.
  63.  
  64. |>     If all of these questions have allready been answered, if
  65. |> you could let me know where I can find the answers I'd appreciate it.
  66. |> 
  67.  
  68.    Try joining the NET channel -
  69. send mail to linux-activists-requests@joker.cs.hut.fi for instructions.
  70.  
  71.  
  72. ---    Charles Hawkins.
  73. ---        Gopal Chand.
  74. +------------------------------------+  +-------------------------------------+
  75. |      Cambridge University          |  | Telephone: (44) +44 223 332765      |
  76. |       Engineering Deperatment      |  | Facsimile: (44) +44 223 332662      |
  77. |        Trumpington Street          |  | E-mail   : gc@eng.cam.ac.uk         |
  78. |         Cambridge CB2 1PZ          |  |            ceh@eng.cam.ac.uk        |
  79. +------------------------------------+  +-------------------------------------+
  80.