summaryrefslogtreecommitdiff
path: root/src/DownloadCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-07-11 14:21:17 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-07-11 14:21:17 +0000
commitf3b097b5af5f720192566cd46f626bbd86c429b9 (patch)
tree7dec29f5a4cba2e360158ab21b00b18193b6e736 /src/DownloadCommand.h
parentf98a1803236f0065301e545f9a65990aa22b1fcc (diff)
2010-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that segments are not filled to Request::getMaxPipelinedRequest(). Make sure that trailing data of transfer encoding is read propery, after file data is received. * src/AbstractCommand.cc * src/DownloadCommand.cc * src/DownloadCommand.h * src/FtpDownloadCommand.cc * src/FtpDownloadCommand.h * src/HttpDownloadCommand.cc * src/HttpDownloadCommand.h
Diffstat (limited to 'src/DownloadCommand.h')
-rw-r--r--src/DownloadCommand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/DownloadCommand.h b/src/DownloadCommand.h
index 9e55784a..128b6bf7 100644
--- a/src/DownloadCommand.h
+++ b/src/DownloadCommand.h
@@ -74,6 +74,9 @@ protected:
virtual bool executeInternal();
virtual bool prepareForNextSegment();
+
+ // This is file local offset
+ virtual off_t getRequestEndOffset() const = 0;
public:
DownloadCommand(cuid_t cuid,
const SharedHandle<Request>& req,