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

Dag-Erling Smørgrav des at des.no
Wed May 9 11:16:56 UTC 2007


Nate Lawson <nate at root.org> writes:
> 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.

I suggest you look at the code.  We *do* derive the TYPE value from
the URL.  We do *not* trust the server state to be consistent from one
request to another.  MDTM and RETR are two separate requests.

We *could* change the code to remember the last TYPE and MODE it
issued for the current server, and not issue new ones unnecessarily,
but we're quickly getting to the point where the FTP code needs a
major cleanup, at least when it comes to connection caching.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the cvs-src mailing list