我正在阅读Netty的源代码,在ServerBootstrap.bind(最终的SocketAddress localAddress)方法中,我发现当抛出InterruptedException时可能会出现无限循环(请查看下面的代码),我的理解是对吗?
do {
try {
future = futureQueue.poll(Integer.MAX_VALUE, TimeUnit.SECONDS);
} catch (InterruptedException e) {
interrupted = true;
}
} while (future == null);