Browse Source

http: skip requesting if pipeline is full

The rewrite in 742f67eaed is based on the
assumption that the pipeline will always be at least one item short each
time it is called, but the logs in #832113 suggest that this isn't
always the case. I fail to see how at the moment, but the old
implementation had this behavior, so restoring it can't really hurt, can
it?
tags/debian/1.3_pre3
David Kalnischkies 5 years ago
parent
commit
353b7bab08
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      methods/server.cc

+ 2
- 0
methods/server.cc View File

@@ -427,6 +427,8 @@ bool ServerMethod::Fetch(FetchItem *)
decltype(PipelineDepth) CurrentDepth = 0;
for (FetchItem const *I = Queue; I != QueueBack; I = I->Next)
++CurrentDepth;
if (CurrentDepth > AllowedDepth)
return true;

do {
// Make sure we stick with the same server


Loading…
Cancel
Save