]> git.saurik.com Git - apt.git/commitdiff
Fixed pipelining and failures
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:10 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:10 +0000 (16:52 +0000)
Author: jgg
Date: 1998-12-11 01:45:36 GMT
Fixed pipelining and failures

methods/http.cc

index 5fbec8de2cad7c0091f073532126e593d32bc9f8..c906877a33d2d63ef18878b2730ad616d39f2ec3 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: http.cc,v 1.14 1998/12/11 01:07:31 jgg Exp $
+// $Id: http.cc,v 1.15 1998/12/11 01:45:36 jgg Exp $
 /* ######################################################################
 
    HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -1010,6 +1010,10 @@ int HttpMethod::Loop()
         Server = new ServerState(Queue->Uri,this);
       }
             
+      // Reset the pipeline
+      if (Server->ServerFd == -1)
+        QueueBack = Queue;      
+        
       // Connnect to the host
       if (Server->Open() == false)
       {