mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2025-10-30 02:12:29 +00:00
Return PONG in response to PING
Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
This commit is contained in:
@@ -138,7 +138,7 @@ namespace OpenWifi {
|
||||
fmt::format("TELEMETRY-WS-PING({}): received. PONG sent back.", CId_));
|
||||
WS_->sendFrame("", 0,
|
||||
(int)Poco::Net::WebSocket::FRAME_OP_PONG |
|
||||
(int)Poco::Net::WebSocket::FRAME_FLAG_FIN);
|
||||
(int)Poco::Net::WebSocket::FRAME_FLAG_FIN);
|
||||
} else if (Op == Poco::Net::WebSocket::FRAME_OP_CLOSE) {
|
||||
poco_information(Logger(),
|
||||
fmt::format("TELEMETRY-DISCONNECT({}): device wants to disconnect.", CId_));
|
||||
|
||||
@@ -610,8 +610,8 @@ namespace OpenWifi {
|
||||
|
||||
case Poco::Net::WebSocket::FRAME_OP_PING: {
|
||||
Connection->WSSocket_->sendFrame("", 0,
|
||||
(int) Poco::Net::WebSocket::FRAME_FLAG_FIN |
|
||||
(int) Poco::Net::WebSocket::FRAME_OP_BINARY);
|
||||
(int)Poco::Net::WebSocket::FRAME_OP_PONG |
|
||||
(int)Poco::Net::WebSocket::FRAME_OP_BINARY);
|
||||
} break;
|
||||
|
||||
case Poco::Net::WebSocket::FRAME_OP_PONG: {
|
||||
|
||||
Reference in New Issue
Block a user