【发布时间】:2021-06-30 12:09:53
【问题描述】:
QueuedThreadPool: WebSocketClient@122503328{STOPPING,8<=8<=200,i=5,q=7} Couldn't stop Thread[WebSocketClient@122503328-1556,5,main]
QueuedThreadPool: WebSocketClient@122503328{STOPPING,8<=8<=200,i=4,q=7} Couldn't stop Thread[WebSocketClient@122503328-1557,5,main]
QueuedThreadPool: WebSocketClient@122503328{STOPPING,8<=8<=200,i=4,q=7} Couldn't stop Thread[WebSocketClient@122503328-1560,5,main]
QueuedThreadPool: WebSocketClient@122503328{STOPPING,8<=8<=200,i=4,q=7} Couldn't stop Thread[WebSocketClient@122503328-1561,5,main]
QueuedThreadPool: WebSocketClient@122503328{STOPPING,8<=8<=200,i=4,q=7} Couldn't stop Thread[WebSocketClient@122503328-1563,5,main]
当我们尝试使用 WebSocketClient 的 stop() 方法停止客户端时,会重复看到上述警告日志,并且系统性能会受到影响。停止超时设置为 0。
当第 3 方计算机上的服务器应用程序关闭并且连接被拒绝时,就会发生这种情况,因为没有服务器正在侦听目标端口。在 onError 回调中看到 Connect Exception。
即使断开和关闭是从与客户端线程不同的线程完成的,也会看到此警告。
【问题讨论】: