Skip to content

Conversation

@naveenchander30
Copy link

Add DialerRetries and DialerRetryTimeout fields to ClusterOptions, RingOptions, and FailoverOptions to allow users to configure connection retry behavior for cluster, ring, and sentinel clients.

These options were previously only available for the standard Client and were added to connection pools in #3518. This change ensures feature parity across all client types.

Changes:

  • Add DialerRetries and DialerRetryTimeout fields to ClusterOptions
  • Add DialerRetries and DialerRetryTimeout fields to RingOptions
  • Add DialerRetries and DialerRetryTimeout fields to FailoverOptions
  • Update clientOptions() methods to pass through these values
  • Update sentinelOptions() method to pass through these values
  • Add tests to verify correct pass-through behavior

Fixes issue where ClusterClient, Ring, and FailoverClient users could not customize connection retry behavior and were stuck with defaults (5 retries, 100ms backoff).

…ions, RingOptions, and FailoverOptions

Add DialerRetries and DialerRetryTimeout fields to ClusterOptions, RingOptions,
and FailoverOptions to allow users to configure connection retry behavior for
cluster, ring, and sentinel clients.

These options were previously only available for the standard Client and were
added to connection pools in redis#3518. This change ensures feature parity across
all client types.

Changes:
- Add DialerRetries and DialerRetryTimeout fields to ClusterOptions
- Add DialerRetries and DialerRetryTimeout fields to RingOptions
- Add DialerRetries and DialerRetryTimeout fields to FailoverOptions
- Update clientOptions() methods to pass through these values
- Update sentinelOptions() method to pass through these values
- Add tests to verify correct pass-through behavior

Fixes issue where ClusterClient, Ring, and FailoverClient users could not
customize connection retry behavior and were stuck with defaults (5 retries,
100ms backoff).
@jit-ci
Copy link

jit-ci bot commented Jan 21, 2026

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

@ndyakov
Copy link
Member

ndyakov commented Jan 21, 2026

@naveenchander30 thank you for this contribution! Looks good on a first quick pass, will do a final review over the weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants