diff options
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/methods/http.cc b/methods/http.cc index 068d26978..d4e231fbe 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1164,25 +1164,24 @@ int HttpMethod::Loop() URIDone(Res); } else - { - if (Server->ServerFd == -1) + { + if (Server->ServerFd == -1) + { + FailCounter++; + _error->Discard(); + Server->Close(); + + if (FailCounter >= 2) { - FailCounter++; - _error->Discard(); - Server->Close(); - - if (FailCounter >= 2) - { - Fail(_("Connection failed"),true); - FailCounter = 0; - } - - QueueBack = Queue; + Fail(_("Connection failed"),true); + FailCounter = 0; } - else - Fail(true); - } - + + QueueBack = Queue; + } + else + Fail(true); + } break; } |