summaryrefslogtreecommitdiff
path: root/methods/connect.h
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-08-05 11:04:45 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2020-08-05 11:08:16 +0200
commitded246bb61b9b0f4ca658be45c1691844e1dc122 (patch)
treece626252e0c7c70d67428de9950b3de9b6a31541 /methods/connect.h
parent8761d5a714819f14c62879d1f705e95b270c5d99 (diff)
http: Fix infinite loop on read errors
If there was a transient error and the server fd was closed, the code would infinitely retry - it never reached FailCounter >= 2 because it falls through to the end of the loop, which sets FailCounter = 0. Add a continue just like the DNS rotation code has, so that the retry actually fails after 2 attempts. Also rework the error logic to forward the actual error message.
Diffstat (limited to 'methods/connect.h')
0 files changed, 0 insertions, 0 deletions