Skip to content

Reconnect Policy #184

@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

cpp-rust-driver-p2Functionality required by cpp-rust-driver

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions