Simplified HttpMethod::Fetch on http.cc removing Tail variable;
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 10 Jul 2007 19:12:25 +0000 (16:12 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 10 Jul 2007 19:12:25 +0000 (16:12 -0300)
debian/changelog
methods/http.cc

index a97018a..2699921 100644 (file)
@@ -9,6 +9,7 @@ apt (0.7.4) UNRELEASED; urgency=low
       - type conversion;
       - unused variable;
       - changed SetupProxy() method to void;
+  * Simplified HttpMethod::Fetch on http.cc removing Tail variable;
 
  -- Otavio Salvador <otavio@ossystems.com.br>  Mon, 02 Jul 2007 13:27:54 -0300
 
index 3c2d8a3..506e66f 100644 (file)
@@ -996,7 +996,6 @@ bool HttpMethod::Fetch(FetchItem *)
 
    // Queue the requests
    int Depth = -1;
-   bool Tail = false;
    for (FetchItem *I = Queue; I != 0 && Depth < (signed)PipelineDepth; 
        I = I->Next, Depth++)
    {
@@ -1008,8 +1007,6 @@ bool HttpMethod::Fetch(FetchItem *)
       if (Server->Comp(I->Uri) == false)
         break;
       if (QueueBack == I)
-        Tail = true;
-      if (Tail == true)
       {
         QueueBack = I->Next;
         SendReq(I,Server->Out);
@@ -1071,7 +1068,6 @@ int HttpMethod::Loop()
         delete Server;
         Server = new ServerState(Queue->Uri,this);
       }
-      
       /* If the server has explicitly said this is the last connection
          then we pre-emptively shut down the pipeline and tear down 
         the connection. This will speed up HTTP/1.0 servers a tad