summaryrefslogtreecommitdiff
path: root/methods/server.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-10-08 08:32:42 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-10-08 08:32:42 +0200
commitf2b47ba290f3a178c584da83f007cf0f720baabb (patch)
treeea54d3dcef48843045f5b0dbebc9075b57483113 /methods/server.h
parent676700504710013d6737f79bf6ad12003d55c30d (diff)
Fix http pipeline messup detection
The Maximum-Size protection breaks the http pipeline reorder code because it relies on that the object got fetched entirely so that it can compare the hash of the downloaded data. So instead of stopping when the Maximum-Size of the expected item is reached we only stop when the maximum size of the biggest item in the queue is reached. This way the pipeline reoder code keeps working.
Diffstat (limited to 'methods/server.h')
-rw-r--r--methods/server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/methods/server.h b/methods/server.h
index 3093e00c9..7d5198478 100644
--- a/methods/server.h
+++ b/methods/server.h
@@ -106,6 +106,10 @@ class ServerMethod : public pkgAcqMethod
unsigned long PipelineDepth;
bool AllowRedirect;
+ // Find the biggest item in the fetch queue for the checking of the maximum
+ // size
+ unsigned long long FindMaximumObjectSizeInQueue() const APT_PURE;
+
public:
bool Debug;