the function used to determine the attempt timeout is overly complex and the delay between each check is not always ideal - it would be good to simplify the function (to make it easier to understand) and make sure that the number of attempts and the delay between each attempt is appropriate.
the function used to determine the attempt timeout is overly complex and the delay between each check is not always ideal - it would be good to simplify the function (to make it easier to understand) and make sure that the number of attempts and the delay between each attempt is appropriate.