diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2020-08-11 10:55:09 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2020-08-11 13:09:04 +0200 |
commit | 73780d7f664a4ea1da55527d726b4c9c7753f1fb (patch) | |
tree | 5ecda7381fd1153dd095a1a6fa282095dcf92b08 /apt-pkg/packagemanager.cc | |
parent | 13ab2317451931f055855f1aeaec6c8b28b14ce2 (diff) |
http: Fully flush local file both before/after server read
We do not want to end up in a code path while reading content
from the server where we have local data left to write, which
can happen if a previous read included both headers and content.
Restructure Flush() to accept a new argument to allow incomplete
flushs (which do not match our limit), so that it can flush as
far as possible, and modify Go() and use that before and after
reading from the server.
Diffstat (limited to 'apt-pkg/packagemanager.cc')
0 files changed, 0 insertions, 0 deletions