summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:08 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:08 +0000
commit3d615484858169e6732ef4f236fd3f38d0083a89 (patch)
treeaf17b8d0fd6f7b95e5298598d3ceb8dba3ac3f42 /methods/http.cc
parentf1663bdf8391e09939e88f070171ed3fe3ab2cbd (diff)
More bugs fixes
Author: jgg Date: 1998-12-10 04:22:45 GMT More bugs fixes
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/methods/http.cc b/methods/http.cc
index c5a227dd7..20d976340 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.11 1998/12/07 07:32:03 jgg Exp $
+// $Id: http.cc,v 1.12 1998/12/10 04:22:53 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -791,6 +791,7 @@ bool HttpMethod::ServerDie(ServerState *Srv)
if (Srv->In.IsLimit() == false && Srv->State != ServerState::Header &&
Srv->Encoding != ServerState::Closes)
{
+ Srv->Close();
if (errno == 0)
return _error->Error("Error reading from server Remote end closed connection");
return _error->Errno("read","Error reading from server");
@@ -1005,7 +1006,7 @@ int HttpMethod::Loop()
case 1:
{
FailCounter++;
- _error->DumpErrors();
+ _error->Discard();
Server->Close();
continue;
}