-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eagerly remove handles from the manager on
cancel
`cancel` used to mark the given `Handle` as `Canceled`, which relied on the reaper to run and clean up the `Canceled` handles. This is not good for long timeouts when many streams are opened, as a lot of `Canceled` handles build up in the reaper's workload. This commit uses the reaper's new `reaperModify` API to immediately remove the given `Handle` in `cancel`. This obsoletes the `Canceled` constructor of `State`, so we remove that as well. We update the time-manager dependency of warp to include the new changes as well. The related auto-update changes are in PR #985.
- Loading branch information
1 parent
efa8e3b
commit 07e7cb4
Showing
5 changed files
with
40 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# ChangeLog for time-manager | ||
|
||
## 0.1.0 | ||
|
||
* [#986](https://github.com/yesodweb/wai/pull/986) | ||
* Change behavior of `cancel` to immediately remove the `Handle` from the | ||
reaper's workload, rather than waiting for timeout. | ||
* Using auto-update v0.2.0. |
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
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