Skip to content

Remove hard cap and honor configured retry intervals#231

Merged
parfeon merged 5 commits intomasterfrom
CLEN-3351-remove-hard-retry-maximum
Apr 20, 2026
Merged

Remove hard cap and honor configured retry intervals#231
parfeon merged 5 commits intomasterfrom
CLEN-3351-remove-hard-retry-maximum

Conversation

@parfeon
Copy link
Copy Markdown
Contributor

@parfeon parfeon commented Apr 19, 2026

fix(reconnection): remove hard cap and honor configured retry intervals

The retry limit was silently clamped to the policy default, configured intervals were ignored by delay calculators, and the async reconnection loop never checked the limit or advanced its counter — fix all three and add a maximum_reconnection_interval config option.

refactor(publish): remove client-side publish sequence number (seqn)

seqn is not required by PubNub REST API, so remove PublishSequenceManager, all its subclasses, MAX_SEQUENCE, and seqn injection.

test(reconnection): rewrite and expand reconnection and effect delay tests

Cover LinearDelay, ExponentialDelay, ReconnectionManager, ReconnectEffect, and HeartbeatDelayedEffect with deterministic assertions for default, custom, and edge cases

The retry limit was silently clamped to the policy default, configured intervals were ignored by
delay calculators, and the async reconnection loop never checked the limit or advanced its counter
— fix all three and add a `maximum_reconnection_interval` config option.

refactor(publish): remove client-side publish sequence number (`seqn`)

`seqn` is not required by PubNub REST API, so remove `PublishSequenceManager`, all its subclasses,
`MAX_SEQUENCE`, and `seqn` injection.

test(reconnection): rewrite and expand reconnection and effect delay tests

Cover `LinearDelay`, `ExponentialDelay`, `ReconnectionManager`, `ReconnectEffect`, and
`HeartbeatDelayedEffect` with deterministic assertions for default, custom, and edge cases
@parfeon parfeon self-assigned this Apr 19, 2026
@parfeon parfeon added status: done This issue is considered resolved. priority: high This PR should be reviewed ASAP. type: fix This PR contains fixes to existing features. type: refactor This PR contains refactored existing features. labels Apr 19, 2026
@pubnub-ops-terraform
Copy link
Copy Markdown

pubnub-ops-terraform commented Apr 19, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@parfeon parfeon marked this pull request as ready for review April 20, 2026 08:16
@parfeon parfeon requested a review from jguz-pubnub as a code owner April 20, 2026 08:16
@parfeon
Copy link
Copy Markdown
Contributor Author

parfeon commented Apr 20, 2026

@pubnub-release-bot release

@parfeon parfeon merged commit fe0d9a3 into master Apr 20, 2026
13 checks passed
@parfeon parfeon deleted the CLEN-3351-remove-hard-retry-maximum branch April 20, 2026 12:34
@pubnub-release-bot
Copy link
Copy Markdown
Contributor

🚀 Release successfully completed 🚀

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

Labels

priority: high This PR should be reviewed ASAP. status: done This issue is considered resolved. type: fix This PR contains fixes to existing features. type: refactor This PR contains refactored existing features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants