From owner-freebsd-current Tue Apr 11 11:28:12 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA26339 for current-outgoing; Tue, 11 Apr 1995 11:28:12 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id LAA26332 for ; Tue, 11 Apr 1995 11:28:08 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA00822; Tue, 11 Apr 95 12:18:32 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9504111818.AA00822@cs.weber.edu> Subject: Re: Missing telent login prompt To: jc@irbs.com (John Capo) Date: Tue, 11 Apr 95 12:18:32 MDT Cc: taob@gate.sinica.edu.tw, freebsd-current@freefall.cdrom.com In-Reply-To: <199504111232.IAA15779@irbs.com> from "John Capo" at Apr 11, 95 08:32:05 am X-Mailer: ELM [version 2.4dev PL52] Sender: current-owner@FreeBSD.org Precedence: bulk > > > The missing telnet login prompt is timing related. A usleep(250000) > > > anywhere in the child fixes it, at least for 50 login tests. > > > > When I telnet to any of the FreeBSD boxes here, the time it takes > > for the login prompt to show up appears to be more or less random. > > Sometimes it pops up right away, other times it can take up to 6 or 7 > > seconds. Is this the same problem? > > No, the prompt fell on the floor. login is running and waiting > for a user name. Terry says its a option negotiation problem. The reason the prompt is missing is because it was flushed by the client who though it was still option negotiation time. Clearly, a login prompt does not contain IsACommand characters. There are hacks in telnet to deal with BSD 4.2 and BSD 4.3 TCP/IP; basically, the difference between the two is whether or not the out of band data handling works. The telnet and telnetd decide what type they are talking to based on option negotiation order. If the order is of one when it should be of the other, or if a 4.2 implementation is talked to with someone who doesn't use the order of operation hacks and starts using OOB for control messages, then you get "dropped prompt" and other wierd behaviour. This is well known, and is in fact documented in the telnet code that came with Net/2. Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.