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

Bug fix: Offset Not Updated for Server-Side Subscriptions After Receiving Publications #107 #108

Merged

Conversation

shalom-aviv
Copy link
Contributor

We have encountered an issue where, after manually reconnecting the client, the same chunk of history is repeatedly retrieved for a server-side subscription.

In debugging, we noticed that the offset sent during the connection request for a channel is the same as the offset returned in the server response, even when publications for that channel are delivered during the connection. This behavior indicates that while the messages are successfully delivered to the client, the offset for the channel is not updated accordingly.

More details is here issues/107

Spikeman's advice:

Spikeman's Avatar

Before releasing the fix on the client, as a temporary workaround, the offset for publications in the target server channel can be stored and previously delivered messages can be skipped.

@FZambia FZambia merged commit da29c5b into centrifugal:master Dec 4, 2024
1 check passed
@FZambia
Copy link
Member

FZambia commented Dec 4, 2024

Many thanks @shalom-aviv ! Will proceed with a release soon.

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