From 4c4307e0331bcec6a9d1bacfb6730f5f6e780896 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 24 Mar 2013 20:48:34 +0100 Subject: [PATCH] Tweaked HTTP 208 retry behaviour, fixed big causing retries to almost always fail. --- src/connectors/conn_http.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connectors/conn_http.cpp b/src/connectors/conn_http.cpp index 5be144c9..568159b9 100644 --- a/src/connectors/conn_http.cpp +++ b/src/connectors/conn_http.cpp @@ -286,7 +286,7 @@ namespace Connector_HTTP { } //check if the whole response was received if (H.Read(connconn[uid]->conn->Received().get())){ - //208 means the fragment is too new, retry in 2000ms + //208 means the fragment is too new, retry in 3s if (H.url == "208"){ retries++; if (retries >= 5){ @@ -296,8 +296,9 @@ namespace Connector_HTTP { } connconn[uid]->lastuse = 0; timeout = 0; - Util::sleep(5000); + Util::sleep(3000); connconn[uid]->conn->SendNow(request); + H.Clean(); continue; } break; //continue down below this while loop