summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-06-29 12:31:55 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2020-07-24 16:30:43 +0200
commitc2cb8abbf5d8a49b25071ffffca93a083fe725fc (patch)
tree3bff1bc591f272c5ce7294a538b4fbf41daf82e0 /methods
parent9742032dcdc0e72c117ae0c589fbb59452d6d33c (diff)
http: On select timeout, error out directly, do not call Die()
The error handling in Die() that's supposed to add useful error messages is not super useful here.
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 161ecf067..c8aeea1ad 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -835,7 +835,7 @@ ResultState HttpServerState::Go(bool ToFile, RequestState &Req)
if (Res == 0)
{
_error->Error(_("Connection timed out"));
- return Die(Req);
+ return ResultState::TRANSIENT_ERROR;
}
// Handle server IO