瀏覽代碼

Fixed pipelining and failures
Author: jgg
Date: 1998-12-11 01:45:36 GMT
Fixed pipelining and failures

Arch Librarian 22 年之前
父節點
當前提交
a7fb252c4c
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      methods/http.cc

+ 5 - 1
methods/http.cc

@@ -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)
       {