summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
Diffstat (limited to 'methods')
-rw-r--r--methods/basehttp.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/methods/basehttp.cc b/methods/basehttp.cc
index e659da255..cd319fce1 100644
--- a/methods/basehttp.cc
+++ b/methods/basehttp.cc
@@ -773,16 +773,23 @@ int BaseHttpMethod::Loop()
if (Server->IsOpen() == false)
{
FailCounter++;
- _error->Discard();
Server->Close();
+
if (FailCounter >= 2)
{
- Fail(_("Connection failed"),true);
+ Fail(true);
FailCounter = 0;
}
-
+ else
+ {
+ _error->Discard();
+ }
+
+ // Reset the pipeline
QueueBack = Queue;
+ Server->PipelineAnswersReceived = 0;
+ continue;
}
else
{