mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
Set pong timeout interval to 1000ms
This commit is contained in:
@@ -69,7 +69,7 @@ int WsCore::Connect(std::string const &uri) {
|
|||||||
&WsCore::OnPong, this, websocketpp::lib::placeholders::_1,
|
&WsCore::OnPong, this, websocketpp::lib::placeholders::_1,
|
||||||
websocketpp::lib::placeholders::_2));
|
websocketpp::lib::placeholders::_2));
|
||||||
|
|
||||||
con->set_pong_timeout(10);
|
con->set_pong_timeout(1000);
|
||||||
|
|
||||||
con->set_pong_timeout_handler(websocketpp::lib::bind(
|
con->set_pong_timeout_handler(websocketpp::lib::bind(
|
||||||
&WsCore::OnPongTimeout, this, websocketpp::lib::placeholders::_1,
|
&WsCore::OnPongTimeout, this, websocketpp::lib::placeholders::_1,
|
||||||
|
|||||||
Reference in New Issue
Block a user