SelectorManager增加stopped状态
在stopped状态,await应该异常退出,否则则进入是死循环
ok,这个知道了,其实 shutdown hook 是没有必要的。我会彻底修下,周末搞下。
2017-03-24 13:59 GMT+08:00 Jeffrey(Xilang) Yan [email protected]:
@xilangyan commented on this pull request.
In src/main/java/com/taobao/gecko/core/nio/impl/SelectorManager.java https://github.com/killme2008/gecko/pull/5#discussion_r107839635:
@@ -148,7 +152,11 @@ void awaitReady() { } catch (final InterruptedException e) { Thread.currentThread().interrupt();// reset interrupt status
}
}if (this.stopped) {throw new IllegalStateException("SelectorManager was stopped");就是java进程不退出,kill命令发出去也不行,一定要kill -9才能杀掉。进程不退,占住metaq,新起来的又消费不了。
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/killme2008/gecko/pull/5#discussion_r107839635, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA3Po_LXu8ioGqlreHsUCl4-eBZmttZks5ro1uzgaJpZM4MALs4 .
-- 庄晓丹 Email: [email protected] [email protected] Site: http://fnil.net Twitter: @killme2008