-
Notifications
You must be signed in to change notification settings - Fork 16
Every expired group will raise RuntimeError #18
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
Comments
I have created pull request to fix it |
Thank you for reporting this error -- and thank you for the pull request! As documented in After thinking on it for a while, I've developed the opinion that the spec is wrong. I've filed django/channels#1371 to nix ... but let me ask you, @ndavydovdev: how did you encounter this bug? Do you actually want groups to expire? If so, why? |
@adamhooper Thank you for your response! We have the system which manages user sessions and when the user stays in the one session(one group, one connection) a long time -> his group expires -> got this error. I think nobody uses standard |
Awesome -- that's what I figured. Thanks for confirming. I'll merge your pull request (and add a unit test). The expected result will be: the subscription disappears and nothing else breaks. I'll also warn users on connect, if they're using the default value of |
I still haven't added a warning. I was waiting on Django-channels devs for feedback on the spec. I still haven't heard back.... |
... actually, come to think of it ... I'm going to disable this feature entirely. I don't think any user wants finite |
This code will raise error every time if
if channels[other_key] < now
is True.I fixed it by raise
group_expiry
param in the config.The text was updated successfully, but these errors were encountered: