From 5cb5d8dc4318227ca3ec8976f67e8cfd2302d1ff Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:53 +0000 Subject: HTTP pipelining Author: jgg Date: 1998-12-05 04:19:01 GMT HTTP pipelining --- apt-pkg/acquire.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'apt-pkg/acquire.cc') 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(); } /*}}}*/ -- cgit v1.2.3-70-g09d2