Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
fix calculation way of attempts #37
This fix is around timeout attempts introduced in #34, that change is insufficient due to the boundary value problem. Due to this problem, the timeout occurs earlier than the setting value.
We should calculate the value of attempts by dividing, rounding up and adding 1. The reason for adding 1 is that the first attempt is performed without waiting for the delay.
It is difficult to explain, so here are some examples: