diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:09 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:09 +0000 |
commit | 85f72a56931e4e9994aa811a77c9d2fec973e30d (patch) | |
tree | 3d64d58db05ac5d4d1584a6917b19a9565b38e27 /methods/http.cc | |
parent | 212ad54a664e099ca2f4d240788d5a75254e9358 (diff) |
http pipelining control
Author: jgg
Date: 1998-12-10 05:39:53 GMT
http pipelining control
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 14 |
1 files changed, 13 insertions, 1 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 /*{{{*/ // --------------------------------------------------------------------- /* */ |