【发布时间】:2016-08-05 13:03:11
【问题描述】:
我有这个:
[info] asio async_read_at_least error: system:10058 (A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call)
[error] handle_read_frame error: websocketpp.transport:2 (Underlying Transport Error)
在 WebSocket++ 库中由 服务器(而不是浏览器客户端)关闭连接后。服务器仍然可以工作,但我该如何解决这个错误?
服务器代码: http://pastebin.com/acbrjLvF
【问题讨论】:
-
你能告诉你你的示例代码是基于什么吗?你为什么不使用
set_close_handler?请尝试提供更完整的示例。 -
@coincoin 是的,我做到了。示例:zaphoyd.com/websocketpp/manual/common-patterns/…
-
stackoverflow.com/questions/25260852/… -> 这有帮助吗?
-
@Samer Tufail 这是服务器,而不是客户端。
-
我的意思是不,这没有帮助。
标签: c++ boost-asio websocket++