0

我正在阅读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);
4

1 回答 1

0

是的,它是正确的.. 你能打开一个错误报告 [1] 吗?

[1] https://github.com/netty/netty/issues

于 2012-11-28T20:36:56.483 回答