summaryrefslogtreecommitdiff
path: root/apt-pkg/apt-pkg.pc.in
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-06-29 14:03:21 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2020-07-24 16:30:43 +0200
commit08f05aa8beb58fa32485e2087eb21a9f3cb267bb (patch)
treedde4a2905ce37b365fe6c6dc4c5afe4761b27bdc /apt-pkg/apt-pkg.pc.in
parentc2cb8abbf5d8a49b25071ffffca93a083fe725fc (diff)
http: Redesign reading of pending data
Instead of reading the data early, disable the timeout for the select() call and read the data later. Also, change Read() to call only once to drain the buffer in such instances. We could optimize this to call read() multiple times if there is also pending stuff on the socket, but that it slightly more complex and should not provide any benefits.
Diffstat (limited to 'apt-pkg/apt-pkg.pc.in')
0 files changed, 0 insertions, 0 deletions