我正在编写一个带有池连接的netty HTTP客户端,现在我pipeline.addLast("Timeout", new ReadTimeoutHandler(readTimeout));在构建通道管道时添加了.
pipeline.addLast("Timeout", new ReadTimeoutHandler(readTimeout));
所以在ReadTimeoutException我想要关闭这个连接,而不打扰池中的任何其他连接,现在我的疑问是我将调用channel.close()和channel.disconnect(),或只有channel.close()将足够好.
ReadTimeoutException
非常感谢任何建议.
netty
netty ×1