Skip to content

Comments

Implement exponential backoff for reconnects#67

Merged
seime merged 3 commits intoseime:masterfrom
amandel:feature/backoff-reconnects
Feb 1, 2026
Merged

Implement exponential backoff for reconnects#67
seime merged 3 commits intoseime:masterfrom
amandel:feature/backoff-reconnects

Conversation

@amandel
Copy link
Contributor

@amandel amandel commented Jan 28, 2026

  • Add maxReconnectInterval configuration parameter.
  • Update reconnectInterval to be the initial delay.
  • Add ExponentialBackoff class to handle delay calculation with jitter.
  • Reset backoff on successful connection.

Andreas Mandel added 2 commits January 28, 2026 21:39
* Add `maxReconnectInterval` configuration parameter.
* Update `reconnectInterval` to be the initial delay.
* Add `ExponentialBackoff` class to handle delay calculation with jitter.
* Reset backoff on successful connection.
@seime
Copy link
Owner

seime commented Jan 29, 2026

Thanks @amandel, could you also update the README.md with the updated configuration parameters?

* Reduce default `reconnectInterval` to 10 and `maxReconnectInterval` to 120.
* Add `maxReconnectInterval` to README and clarify reconnection behavior.
@amandel
Copy link
Contributor Author

amandel commented Jan 29, 2026

@seime - sure. I've added the parameter to README.md and also aligned the defaults.

@seime seime merged commit 865a006 into seime:master Feb 1, 2026
2 checks passed
@seime
Copy link
Owner

seime commented Feb 1, 2026

Thanks for contributing @amandel

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