home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!cam-eng!gc
- From: gc@eng.cam.ac.uk (G. Chand)
- Newsgroups: comp.os.linux
- Subject: Re: TCP/IP works (yippee) but still some problems : -(
- Summary: TCP/IP 0.8 fixes for hanging FTP and TELNET
- Keywords: TCP/IP, net, ethernet, telnet, ftp
- Message-ID: <1992Sep3.235810.4024@eng.cam.ac.uk>
- Date: 3 Sep 92 23:58:10 GMT
- References: <1992Sep2.201059.25216@newshub.ccs.yorku.ca>
- Sender: gc@eng.cam.ac.uk (G. Chand)
- Organization: cam.eng
- Lines: 65
- Nntp-Posting-Host: club.eng.cam.ac.uk
-
- In article <1992Sep2.201059.25216@newshub.ccs.yorku.ca>, nealstep@nexus.yorku.ca (Neal Stephenson) writes:
-
- |> I installed the tcp/ip package and it compiled without errors.
- |> I then increased the number of pty's to 64 and mknod'ed all of them,
- |> under the assumption that each telnet in used up one (is this right?).
- |> I then rebooted.
- |> I can now ftp out of the system perfectly, it works great and
- |> since that was the main use, I am very happy (congrats to all
- |> concerned). :-) :-) :-)
- |> However, if I ftp in I hang.
-
- There is a bug in the TCP/IP 0.8 code. The following two lines alleviate
- the problem - in file tcp.c :
-
- in cleanup_rbuf() change
- if (sk->timeout != TIME_WRITE)
-
- to
- if ( (sk->timeout != TIME_WRITE) &&
- (sk->state == TCP_ESTABLISHED) )
-
- While you're in that file you should also change a typo in tcp_close() so
- that you have:
-
- sk->time_wait.len = TCP_WRITE_TIME;
- sk->timeout = TIME_WRITE;
-
- about 20 lines from the end of the function.
-
- FTP will still hang for a few seconds, however, but a few seconds is better
- than eternity IMHO ;-)
-
- |> Also telnetting out connects to
- |> the host and then locks up the keys at the password prompt. you can
- |> however send a ctrl-d to end the login attempt (if it's a unix box) or
- |> a ctrl-z for a vax, strange.
- |> for telnetting in the same kind of problems are encountered.
- |> if you telnet in to an account that has no passwd (horrible securety,
- |> i know) it works fine. but if you try one that has a password it locks
- |> up on the password prompt.
- |> last few points. perhaps they are relevant. telneting out is
- |> very stacatto get packets then nothing then packet. and after telneting
- |> in when you log out it does not remove the name from the active users
- |> list.
-
- The above fixes do not help this problem. We have traced it down to an ECHO
- disable request which has no corresponding ECHO re-enable. No password means
- no ECHO disable and hence no problem! Telnetd probably needs a recompilation.
-
- |> If all of these questions have allready been answered, if
- |> you could let me know where I can find the answers I'd appreciate it.
- |>
-
- Try joining the NET channel -
- send mail to linux-activists-requests@joker.cs.hut.fi for instructions.
-
-
- --- Charles Hawkins.
- --- Gopal Chand.
- +------------------------------------+ +-------------------------------------+
- | Cambridge University | | Telephone: (44) +44 223 332765 |
- | Engineering Deperatment | | Facsimile: (44) +44 223 332662 |
- | Trumpington Street | | E-mail : gc@eng.cam.ac.uk |
- | Cambridge CB2 1PZ | | ceh@eng.cam.ac.uk |
- +------------------------------------+ +-------------------------------------+
-