duosecurity / duo_api_csharp

Other
32 stars 31 forks source link

Add automatic request retry/backoff when rate limited #8

Closed GeoffTK closed 5 years ago

GeoffTK commented 5 years ago

If the request is rate limited, this library will now sleep for a bit and then try again. We use an exponential backoff, so the request should sleep for 1 second, then 2, then 4, 8, 16, and max out at 32 seconds.