Skip to content

Commit

Permalink
retry 502 and 504
Browse files Browse the repository at this point in the history
  • Loading branch information
beth-soptim committed Nov 27, 2023
1 parent d8838e3 commit ed644e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class NvdApiRetryStrategy extends DefaultHttpRequestRetryStrategy {

public NvdApiRetryStrategy(int maxRetries, long delay) {
super(maxRetries, TimeValue.of(delay, TimeUnit.MILLISECONDS), new ArrayList<Class<? extends IOException>>(),
Arrays.asList(429, 503));
Arrays.asList(429, 502, 503, 504));
this.maxRetries = maxRetries;
this.delay = delay;
}
Expand Down

0 comments on commit ed644e3

Please sign in to comment.