Specify timeout on Selector.select()
This commit is contained in:
parent
4323fea5fb
commit
9feb27d58c
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user