websocketpp icon indicating copy to clipboard operation
websocketpp copied to clipboard

ws 长连接断开

Open Owenli614625 opened this issue 6 years ago • 2 comments

1.客户端 开始向服务发送数据时正常的。但过段时间就可能断开。这个会是什么原因

Owenli614625 avatar Oct 21 '20 03:10 Owenli614625

猜测这个最可能的原因是没有ping/pong消息。

在 2020-10-21 11:04:57,"Owenli614625" [email protected] 写道:

1.客户端 开始向服务发送数据时正常的。但过段时间就可能断开。这个会是什么原因

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

luoyongh avatar Oct 21 '20 03:10 luoyongh

I have also encountered this problem. Have you solved it? Now I have found that it is related to the m_writable_flag variable.

kaola-zero avatar Nov 06 '24 08:11 kaola-zero