Specify timeout on Selector.select()

This commit is contained in:
Trustin Lee 2013-03-14 08:54:33 +09:00
parent 4323fea5fb
commit 9feb27d58c

View File

@ -583,7 +583,7 @@ public final class NioEventLoop extends SingleThreadEventLoop {
private int select() throws IOException {
try {
return selector.select();
return selector.select(SELECT_TIMEOUT);
} catch (CancelledKeyException e) {
if (logger.isDebugEnabled()) {
logger.debug(