Netty中添加 sc.pipeline().addLast(new ReadTimeoutHandler(5)) 可实现自动断开连接,再次连接重新调用 connect方法。
Netty之数据通信
最新推荐文章于 2020-12-27 19:59:00 发布
Netty中添加 sc.pipeline().addLast(new ReadTimeoutHandler(5)) 可实现自动断开连接,再次连接重新调用 connect方法。