diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:08 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:08 +0000 |
commit | 3d615484858169e6732ef4f236fd3f38d0083a89 (patch) | |
tree | af17b8d0fd6f7b95e5298598d3ceb8dba3ac3f42 /methods | |
parent | f1663bdf8391e09939e88f070171ed3fe3ab2cbd (diff) |
More bugs fixes
Author: jgg
Date: 1998-12-10 04:22:45 GMT
More bugs fixes
Diffstat (limited to 'methods')
-rw-r--r-- | methods/http.cc | 5 |
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; } |