From 9bb831d7d489eac732d4aaccc1a014d923e711ff Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 13 Nov 2018 10:19:58 +0100 Subject: Revert "http: Fix handling of server connection closure" This reverts commit fb3f36593563d09a8d1727cc7c6deb0b49823ca2. It caused downloads to hang on long-lived connections on certain servers. Gbp-Dch: full --- methods/http.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'methods') diff --git a/methods/http.cc b/methods/http.cc index c40336410..2e7fca307 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -711,10 +711,11 @@ ResultState HttpServerState::Die(RequestState &Req) _error->Errno("write", _("Error writing to the file")); return ResultState::TRANSIENT_ERROR; } + + // Done + if (In.IsLimit() == true) + return ResultState::SUCCESSFUL; } - // Done - if (In.IsLimit() == true) - return ResultState::SUCCESSFUL; } // See if this is because the server finished the data stream -- cgit v1.2.3