小编Ala*_*ava的帖子

channel.close()与channel.disconnect()之间的Netty 4差异

我正在编写一个带有池连接的netty HTTP客户端,现在我pipeline.addLast("Timeout", new ReadTimeoutHandler(readTimeout));在构建通道管道时添加了.

所以在ReadTimeoutException我想要关闭这个连接,而不打扰池中的任何其他连接,现在我的疑问是我将调用channel.close()和channel.disconnect(),或只有channel.close()将足够好.

非常感谢任何建议.

netty

10
推荐指数
0
解决办法
3888
查看次数

标签 统计

netty ×1