diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:53 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:53 +0000 |
commit | 5cb5d8dc4318227ca3ec8976f67e8cfd2302d1ff (patch) | |
tree | 026fae4811ede2b7fc28773a8f4ef3042007fab8 /apt-pkg/acquire.cc | |
parent | f01fe790891daf085b3a16ce8be3498fcc329d6e (diff) |
HTTP pipelining
Author: jgg
Date: 1998-12-05 04:19:01 GMT
HTTP pipelining
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r-- | apt-pkg/acquire.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 54de9916e..b7ef818a1 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire.cc,v 1.19 1998/11/29 01:24:19 jgg Exp $ +// $Id: acquire.cc,v 1.20 1998/12/05 04:19:03 jgg Exp $ /* ###################################################################### Acquire - File Acquiration @@ -514,6 +514,17 @@ bool pkgAcquire::Queue::Startup() if (Workers->Start() == false) return false; + /* When pipelining we commit 10 items. This needs to change when we + added other source retry to have cycle maintain a pipeline depth + on its own. */ + if (Cnf->Pipeline == true) + { + bool Res = true; + for (int I = 0; I != 10 && Res == true; I++) + Res &= Cycle(); + return Res; + } + return Cycle(); } /*}}}*/ |