diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2007-07-16 23:05:01 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2007-07-16 23:05:01 -0300 |
commit | 23e8503647b9da6f2f12226d25a4740c32e54b7f (patch) | |
tree | c880482534f5708d258575ea864a82e7dc317c36 /methods | |
parent | 2dfc3bb89a0696f0e9891b25869f82225cb58289 (diff) | |
parent | 5ffd03998b01c174298ddb3f2f914f59bdee7481 (diff) |
Another sync with Christian
Diffstat (limited to 'methods')
-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; } |