summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2018-11-13 10:19:58 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2018-11-13 10:20:09 +0100
commit9bb831d7d489eac732d4aaccc1a014d923e711ff (patch)
treefc69761514ed8f0aeb553eb303acb2f542e614ce /methods/http.cc
parent9cff147d5477cc6beb455e533939dfeb965c3e85 (diff)
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
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc7
1 files changed, 4 insertions, 3 deletions
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