-
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.
The Python implementation of River probably has a few bugs, since we see a large number of invariant violation errors. This change: * Stops a few resource leaks: the heartbeat tasks could get into a state where they never terminated, so they would consume a task forever. * Stops a couple of TOCTOU races where an `await` point could have gotten in the way of a test-and-replace operation (which thanks to the GIL should be "atomic", except that pesky `await` point got in the way). * Added a comment clarifying the transitions between the session states. * Deindented a smol block for clarity.
- Loading branch information
Showing
3 changed files
with
31 additions
and
20 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