diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2018-11-02 18:19:33 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2018-11-12 11:51:56 +0100 |
commit | fb3f36593563d09a8d1727cc7c6deb0b49823ca2 (patch) | |
tree | 9a4d28082ef1145c3bf60e2cc059dbc5a78908c0 /CMakeLists.txt | |
parent | 02abae0394c54ba43bfaf6c4e1b1bc0f39708e92 (diff) |
http: Fix handling of server connection closure
If the server closed the connection while we're reading data, and
we end up not having any data left to write; that is, for example,
we received 0 bytes, then we did not exit before, as we only returned
success if there was data to write.
This is wrong: Obviously, if we have reached our limit, we are done
anyway. It's a bit unclear if we actually ever reached this part, but
it does make some sense wrt the bug below.
LP: #1801338
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions