-
- Downloads
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.
parent
91ab0a67
No related branches found
No related tags found
Please register or sign in to comment