Skip to content

Reconnect Policy #184

Open
Open
@cvybhu

Description

@cvybhu

Currently when a connection breaks we attempt to reconnect with a fixed 8 second cooldown.

Reconnection strategy should be configurable by the user.
DataStax Java Driver has a configurable reconnection policy, we should implement something similar in this driver.

ReconnectPolicy could be a trait and a Box<dyn ReconnectPolicy> could be included in SessionConfig and ConnectionConfig. Then ConnectionKeeperWorker would use it to decide when to schedule reconnect attempts.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions