]> git.ipfire.org Git - thirdparty/squid.git/commit
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 Apr 2009 00:44:05 +0000 (12:44 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 25 Apr 2009 00:44:05 +0000 (12:44 +1200)
commit17dc64a70c709f0f033ac0e2896fc4fbfe612a3d
treebb1756e1ecab88e7e01537cf9ac848fa8fbf610d
parented9cfad6f382f831b927ab233675c33a47d9eafd
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2578: squid fails to resume dowload from FTP

The ftp code uses the FtpStateData::restart_offset and
FtpStateData::restarted_offset to compute the offset in the case of
partial responses, but it must also set the
ServerStateData::currentOffset member variable.
This patch:
  - completely removes the FtpStateData::restarted_offset member and uses
    the ServerStateData::currentOffset member variable instead.
  - adds the FtpStateData::setCurrentOffset(int64_t) and
    FtpStateData::getCurrentOffset() public methods to allow set/get the
    ServerStateData::currentOffset value
src/ftp.cc