summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:09 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:09 +0000
commit85f72a56931e4e9994aa811a77c9d2fec973e30d (patch)
tree3d64d58db05ac5d4d1584a6917b19a9565b38e27 /methods
parent212ad54a664e099ca2f4d240788d5a75254e9358 (diff)
http pipelining control
Author: jgg Date: 1998-12-10 05:39:53 GMT http pipelining control
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc14
-rw-r--r--methods/http.h5
2 files changed, 16 insertions, 3 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 20d976340..52ce60d70 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.12 1998/12/10 04:22:53 jgg Exp $
+// $Id: http.cc,v 1.13 1998/12/10 05:39:55 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -937,6 +937,18 @@ bool HttpMethod::Fetch(FetchItem *)
return true;
};
/*}}}*/
+// HttpMethod::Configuration - Handle a configuration message /*{{{*/
+// ---------------------------------------------------------------------
+/* We stash the desired pipeline depth */
+bool HttpMethod::Configuration(string Message)
+{
+ if (pkgAcqMethod::Configuration(Message) == false)
+ return false;
+
+ PipelineDepth = _config->FindI("Acquire::http::Pipeline-Depth",5);
+ return true;
+}
+ /*}}}*/
// HttpMethod::Loop - Main loop /*{{{*/
// ---------------------------------------------------------------------
/* */
diff --git a/methods/http.h b/methods/http.h
index 1a22c5ae5..700587048 100644
--- a/methods/http.h
+++ b/methods/http.h
@@ -1,5 +1,5 @@
// -*- mode: cpp; mode: fold -*-
-// Description /*{{{*/// $Id: http.h,v 1.5 1998/12/05 04:19:06 jgg Exp $
+// Description /*{{{*/// $Id: http.h,v 1.6 1998/12/10 05:39:56 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -118,7 +118,8 @@ class HttpMethod : public pkgAcqMethod
bool ServerDie(ServerState *Srv);
int DealWithHeaders(FetchResult &Res,ServerState *Srv);
- bool Fetch(FetchItem *);
+ virtual bool Fetch(FetchItem *);
+ virtual bool Configuration(string Message);
// In the event of a fatal signal this file will be closed and timestamped.
static string FailFile;