]> git.saurik.com Git - apt.git/commitdiff
http pipelining control
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:09 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:09 +0000 (16:52 +0000)
Author: jgg
Date: 1998-12-10 05:39:53 GMT
http pipelining control

cmdline/apt-cache.cc
doc/apt.conf.5.yo
methods/http.cc
methods/http.h

index 429c36a3d41c89430c93c60f49a77732daf044d6..6f262ae92320371af8d5b6f8e03a7ec581d6a063 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-cache.cc,v 1.17 1998/12/10 04:22:48 jgg Exp $
+// $Id: apt-cache.cc,v 1.18 1998/12/10 05:39:53 jgg Exp $
 /* ######################################################################
    
    apt-cache - Manages the cache files
@@ -451,7 +451,8 @@ int ShowHelp()
    cout << "  -h   This help text." << endl;
    cout << "  -p=? The package cache. [" << _config->FindFile("Dir::Cache::pkgcache") << ']' << endl;
    cout << "  -s=? The source cache. [" << _config->FindFile("Dir::Cache::srcpkgcache") << ']' << endl;
-   cout << "  -q   Disable progress indicator. " << endl;
+   cout << "  -q   Disable progress indicator." << endl;
+   cout << "  -i   Show only important deps for the unmet command." << endl;
    cout << "  -c=? Read this configuration file" << endl;
    cout << "  -o=? Set an arbitary configuration option, ie -o dir::cache=/tmp" << endl;
    cout << "See the apt-cache(8) and apt.conf(8) manual pages for more information." << endl;
index a1ebd784c0542f2230fc202130c182cfc9d5e99b..9e04069a6b0d7b5f649feb499a7d9b8d12d6981e 100644 (file)
@@ -87,7 +87,12 @@ updates its index files daily so the default is 1 day. bd(No-Store)
 specifies that the cache should never store this request, it is only
 set for archive files. This may be usefull to prevent polluting a proxy cache
 with very large .deb files. Note: Squid 2.0.2 does not support any of
-these options.
+these options. 
+
+One setting is provided to control the pipeline depth in cases where the
+remote server is not RFC conforming or buggy (such as Squid 2.0.2)
+Acquire::http::Pipeline-Depth can be a value from 0 to 5 indicating how many
+outstanding requests APT should send.
 
 dit(bf(cdrom))
 CDROM URIs; the only setting for CDROM URIs is the mount point, cdrom::Mount
index 20d976340c14d79c6fe05062ad68004065b48971..52ce60d70b61dfe2ea4ace611381a333b4be3a48 100644 (file)
@@ -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                                                /*{{{*/
 // ---------------------------------------------------------------------
 /* */
index 1a22c5ae527be2e7fc7df6e914dd72e02a862eed..700587048757071110ae71f20b50a0b3c12baf6f 100644 (file)
@@ -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;