From 63fb36bf48579f5d799b70875652164a62597828 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 1 Oct 2012 09:45:16 +0200 Subject: [PATCH] Fixed a HTTP bug causing some requests to never be answered, removed some debug output that was left behind. --- src/conn_http.cpp | 2 -- src/conn_http_dynamic.cpp | 5 ++--- src/conn_http_progressive.cpp | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/conn_http.cpp b/src/conn_http.cpp index 0c1d5066..8aea5a76 100644 --- a/src/conn_http.cpp +++ b/src/conn_http.cpp @@ -250,7 +250,6 @@ namespace Connector_HTTP{ }else{ connconn[uid]->conn->Received().append(tmp); } - continue; } //check if the whole response was received if (H.Read(connconn[uid]->conn->Received().get())){ @@ -350,7 +349,6 @@ namespace Connector_HTTP{ }else{ conn->Received().append(tmp); } - continue; } if (Client.Read(conn->Received().get())){ std::string handler = getHTTPType(Client); diff --git a/src/conn_http_dynamic.cpp b/src/conn_http_dynamic.cpp index 178e5950..c92d15e8 100644 --- a/src/conn_http_dynamic.cpp +++ b/src/conn_http_dynamic.cpp @@ -110,9 +110,9 @@ namespace Connector_HTTP{ abst.setSegmentRunTable(asrt, 0); abst.setFragmentRunTable(afrt, 0); - //#if DEBUG >= 8 + #if DEBUG >= 8 std::cout << "Sending bootstrap:" << std::endl << abst.toPrettyString(0) << std::endl; - //#endif + #endif return std::string((char*)abst.asBox(), (int)abst.boxedSize()); } @@ -189,7 +189,6 @@ namespace Connector_HTTP{ }else{ conn.Received().append(tmp); } - continue; } if (HTTP_R.Read(conn.Received().get())){ #if DEBUG >= 4 diff --git a/src/conn_http_progressive.cpp b/src/conn_http_progressive.cpp index d90477c9..bfc97c36 100644 --- a/src/conn_http_progressive.cpp +++ b/src/conn_http_progressive.cpp @@ -51,7 +51,6 @@ namespace Connector_HTTP{ }else{ conn.Received().append(tmp); } - continue; } if (HTTP_R.Read(conn.Received().get())){ #if DEBUG >= 4