Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!sun!guy From: guy@sun.UUCP Newsgroups: net.unix Subject: Re: Unreliable FTP Message-ID: <4141@sun.uucp> Date: Sat, 14-Jun-86 16:53:42 EDT Article-I.D.: sun.4141 Posted: Sat Jun 14 16:53:42 1986 Date-Received: Tue, 17-Jun-86 21:59:08 EDT References: <2258@uwmacc.UUCP> Organization: Sun Microsystems, Inc. Lines: 15 > Anyone know how come it is that FTP sometimes doesn't > do anything when I do a "get file"? It does the "transfer > complete" bit, but never transfers anything. ... It smells like a timing > problem to me. Assuming this is the 4.2BSD "ftp", there is a bit of brainrot which could cause this. The routine "getreply", after having read a reply code, will see if more data is available on the control channel. If so, it will *throw away* the reply code and read another one. This tends to confuse the FTP state machine a bit. Try getting rid of the "if (expecteof || empty(cin))" stuff before the reply code is returned. -- Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com (or guy@sun.arpa)