r244 - in /apt-transport-debtorrent/trunk: ./ debtorrent.cc

camrdale-guest at users.alioth.debian.org camrdale-guest at users.alioth.debian.org
Wed Aug 15 00:04:13 UTC 2007


Author: camrdale-guest
Date: Wed Aug 15 00:04:13 2007
New Revision: 244

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=244
Log:
Remove the limit on pipelining (and set some ignore properties).

Modified:
    apt-transport-debtorrent/trunk/   (props changed)
    apt-transport-debtorrent/trunk/debtorrent.cc

Propchange: apt-transport-debtorrent/trunk/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed Aug 15 00:04:13 2007
@@ -1,0 +1,6 @@
+.cdtproject
+.settings
+.project
+.*.d
+debtorrent
+

Modified: apt-transport-debtorrent/trunk/debtorrent.cc
URL: http://svn.debian.org/wsvn/debtorrent/apt-transport-debtorrent/trunk/debtorrent.cc?rev=244&op=diff
==============================================================================
--- apt-transport-debtorrent/trunk/debtorrent.cc (original)
+++ apt-transport-debtorrent/trunk/debtorrent.cc Wed Aug 15 00:04:13 2007
@@ -54,7 +54,6 @@
 string HttpMethod::FailFile;
 int HttpMethod::FailFd = -1;
 time_t HttpMethod::FailTime = 0;
-unsigned long PipelineDepth = 10;
 unsigned long TimeOut = 120;
 bool Debug = false;
 URI Proxy;
@@ -995,8 +994,7 @@
 
    // Queue the requests
    int Depth = -1;
-   for (FetchItem *I = Queue; I != 0 && Depth < (signed)PipelineDepth; 
-	I = I->Next, Depth++)
+   for (FetchItem *I = Queue; I != 0; I = I->Next, Depth++)
    {
       // If pipelining is disabled, we only queue 1 request
       if (Server->Pipeline == false && Depth >= 0)
@@ -1025,8 +1023,6 @@
       return false;
    
    TimeOut = _config->FindI("Acquire::http::Timeout",TimeOut);
-   PipelineDepth = _config->FindI("Acquire::http::Pipeline-Depth",
-				  PipelineDepth);
    Debug = _config->FindB("Debug::Acquire::http",false);
    
    return true;




More information about the Debtorrent-commits mailing list