summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2007-07-16 23:05:01 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2007-07-16 23:05:01 -0300
commit23e8503647b9da6f2f12226d25a4740c32e54b7f (patch)
treec880482534f5708d258575ea864a82e7dc317c36 /methods/http.cc
parent2dfc3bb89a0696f0e9891b25869f82225cb58289 (diff)
parent5ffd03998b01c174298ddb3f2f914f59bdee7481 (diff)
Another sync with Christian
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc33
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;
}