-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Redis PubSub Not Close Subscribing #55
Comments
I have just tried switching to redis backend (as postgres backend seems to have memory leak issues due to asyncpg somewhere). The issue with the subscribe not closing is due to the handling of the subscribers in _base.py
This section
Needs to be contained in the Finally section, when the websocket ends it raises an exception which leads to the try/except breaking out and never unsubscribing. |
It's not nice, but you can work around broadcast and maintain existing websocket behaviour like so.
|
Fixed in #112 |
* Fixed #55 - Not Close Subscribing * Added Redis Stream backend * Fixed Linting Test * Added Test For Redis Stream Backend * align with master * update docs --------- Co-authored-by: tsotne <[email protected]> Co-authored-by: Tom Christie <[email protected]>
Hi
I Using broadcaster for websocket connection and set new unique id for websocket client when new websocket connection open and subscribe on this unique id
other application publish message to websocket client by this unique id.
my application work properly and this is fine.
but I have one issue .
connection close but subscribe of redis not close until applicatin down.
context manager close but subscribe not close (unsubscribe)
The text was updated successfully, but these errors were encountered: