-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in_tail: Shutdown immediately & safely even if reading huge files
in_tail takes very long time to shutdown when it's reading huge files. This patch ensure to shutdown ASAP just after receiving a shutdown command. * Constructed tail watchers should be registered ASAP to be recognized by the shutdown process. * Break TailWatcher#on_notify ASAP Wait 5 secdonds before break it to ensure to read remaining lines. It takes effect only when `skip_refresh_on_startup` is enabled, because reading files is occurred on main thread without it. It should be enabled by default in the future. Signed-off-by: Takuro Ashie <ashie@clear-code.com>
- Loading branch information
Showing
1 changed file
with
33 additions
and
7 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