Unreliable FTP
guy at sun.UUCP
guy at sun.UUCP
Sun Jun 15 06:53:42 AEST 1986
> 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 at sun.com (or guy at sun.arpa)
More information about the Comp.unix
mailing list