From 85f72a56931e4e9994aa811a77c9d2fec973e30d Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:09 +0000 Subject: http pipelining control Author: jgg Date: 1998-12-10 05:39:53 GMT http pipelining control --- methods/http.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'methods/http.cc') 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 /*{{{*/ // --------------------------------------------------------------------- /* */ -- cgit v1.2.3