-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeout for DefaultLoopResources#disposeLater (#3514)
When shutting down EventLoopGroup, Netty tries to add for an execution a task that will stop the EventLoops. However if there is a CPU intensive task running on an EventLoop, the execution of the shutting down task might never happen. This change adds a timeout for DefaultLoopResources#disposeLater so that the user will be notified that some EventLoops cannot be stopped. Note: Having blocking and CPU intensive tasks on EventLoops is strongly discouraged and can lead to unpredictable failures. Fixes #3509
- Loading branch information
Showing
2 changed files
with
70 additions
and
2 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