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