-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix keepalive connections not being closed in time (#4956)
Co-authored-by: Andrew Svetlov <[email protected]>
- Loading branch information
1 parent
3419080
commit 5b42104
Showing
4 changed files
with
16 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Fix keepalive connections not being closed in time | ||
|
||
Refactoring in 964921d4e97e7c84bcfda6772ed458549aea0b09 introduced a | ||
regression so that `_cleanup()` could be called only once or few times. | ||
`_release()` expects `self._cleanup_handle` to be None to add new | ||
`weakref_handle`. But when `_cleanup()` called and there are no | ||
remaining connections, `self._cleanup_handle` will remain as | ||
`<TimerHandle cancelled when=5853434>`, so `_release()` will not have a | ||
chance to schedule `_cleanup()` call again. | ||
|
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