We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e3394a commit 9633ea7Copy full SHA for 9633ea7
1 file changed
duo-client/src/main/java/com/duosecurity/client/Http.java
@@ -319,6 +319,10 @@ private Response executeRequest(Request request) throws Exception {
319
return response;
320
}
321
322
+ // Close the 429 response to release the connection back to the pool before retrying
323
+ if (response.body() != null) {
324
+ response.close();
325
+ }
326
sleep(backoffMs + nextRandomInt(1000));
327
backoffMs *= BACKOFF_FACTOR;
328
0 commit comments