forked from django/channels_redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Discard full channels (#1)
## Problem We have an issue where channels are no longer being consumed from, but they linger around anyway. This requires us to support far more channels than we need to. Ideally we'd figure out how to discard these channels upon clients disconnecting, but even though we call `group_discard` appropriately, the channels don't seem to be discarded. ## Solution Add an option that, when enabled, discards any at-capacity channels immediately upon sending a message that channel. ## Testing - [x] Added an automated test ## Security No sensitive data is exposed.
- Loading branch information
1 parent
fe27f1a
commit a05e92b
Showing
3 changed files
with
139 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters