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

Register operation with connection context for gevent subscription #55

Closed

Conversation

kahkeng
Copy link

@kahkeng kahkeng commented Oct 27, 2020

Note: this fix comes from this old pull request #11, I'm extracting it into its own PR since it is helpful independent of the pubsub implementation.

For verifying this bug, I loaded an app with a subscription, then reloaded the page multiple times. When an update happens, my backend logs that multiple updates were pushed out. With the proposed fix, only one update is sent out. Also, I noted that the other subscription server implementations (aiohttp/websockets_lib) have a register_operation call in their on_start handlers, but the gevent one does not.

Copy link

@EmrysMyrddin EmrysMyrddin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :-) Hope this will be merge soon

@SmileyChris
Copy link
Contributor

This should be fine now, merged as part of the large #46 pr

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.

3 participants