Skip to content

Commit

Permalink
Lower max delay for ServiceDiscovery retries from 256 to 128 seconds (#…
Browse files Browse the repository at this point in the history
…2895)

Motivation:

256 seconds seems like quite a long delay for retrying SD errors.
We agreed to cut it down in half.
  • Loading branch information
idelpivnitskiy committed Apr 16, 2024
1 parent 9d72b15 commit cc2cdfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ final class DefaultSingleAddressHttpClientBuilder<U, R> implements SingleAddress
new IdleTimeoutConnectionFilter(ofMinutes(5));

static final Duration SD_RETRY_STRATEGY_INIT_DURATION = ofSeconds(2);
static final Duration SD_RETRY_STRATEGY_MAX_DELAY = ofSeconds(256);
static final Duration SD_RETRY_STRATEGY_MAX_DELAY = ofSeconds(128);

@Nullable
private final U address;
Expand Down

0 comments on commit cc2cdfa

Please sign in to comment.