Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race causing duplicate subscribe requests #303

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Conversation

FZambia
Copy link
Member

@FZambia FZambia commented Jan 22, 2025

In some cases when subscription is delayed initially the absence of correct _inflight check resulted into duplicate subscribe requests sent – and already subscribed error. Here is a fix.

Also adding a test for subscribing to many channels with token which reproduced the problem when run many times and improving test stability.

@FZambia FZambia merged commit 08c3551 into master Jan 23, 2025
3 checks passed
@FZambia FZambia deleted the fix_subscribe_race branch January 25, 2025 09:59
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.

1 participant