Right now it seems that --max-retries is not obeyed when --timeout is hit. Wouldn't that make sense?
Could you attach a log (see -l option) to verify this issue?
I was unable to reproduce the problem with 1.18.1. This is good to close.
Thank you for updates. Let's close the issue.