From c2cb8abbf5d8a49b25071ffffca93a083fe725fc Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 29 Jun 2020 12:31:55 +0200 Subject: 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. --- methods/http.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'methods') 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 -- cgit v1.2.3