Skip to content

Commit 1e7cdfe

Browse files
authored
fix msi retry interval (#1770)
1 parent 887cf6f commit 1e7cdfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerSecurityUtility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static SqlFedAuthToken getMSIAuthToken(String resource, String msiClientId) thro
363363
maxRetry = 20;
364364
// Simplified variant of Exponential BackOff
365365
for (int x = 0; x < maxRetry; x++) {
366-
retrySlots.add(INTERNAL_SERVER_ERROR * ((2 << 1) - 1) / 1000);
366+
retrySlots.add(INTERNAL_SERVER_ERROR * ((2 << x) - 1) / 1000);
367367
}
368368
}
369369

0 commit comments

Comments
 (0)