cvs commit: src/lib/libfetch fetch.3 ftp.c

Nate Lawson nate at root.org
Wed May 9 07:01:23 UTC 2007


Dag-Erling Smørgrav wrote:
> Nate Lawson <nate at root.org> writes:
>> BTW, is there any reason to redo the "MODE S" and "TYPE I" commands
>> after MDTM?
> 
> MODE and TYPE commands are always issued before an MDTM (fetchStat*())
> or RETR (fetchGet*()), because the code assumes that they can vary
> from one call to another.  This is true for TYPE (you can specify it
> in the URL), and I chose to assume that it might also be the case for
> MODE, even though it currently isn't.
> 
> (remember that the FTP code will reuse the control connection across
> calls as long as the requested URLs are on the same server)

Could it be possible to check the values from the URL used to derive
TYPE for RETR and then if it's the same as the value for MDTM, don't
reissue it?  Same for MODE.

-- 
Nate


More information about the cvs-all mailing list