Skip to content

Commit aeef70a

Browse files
Carsten SchaferCarsten Schafer
authored andcommitted
Return PONG in response to PING
Signed-off-by: Carsten Schafer <Carsten.Schafer@kinarasystems.com>
1 parent 42c421e commit aeef70a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/TelemetryClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ namespace OpenWifi {
138138
fmt::format("TELEMETRY-WS-PING({}): received. PONG sent back.", CId_));
139139
WS_->sendFrame("", 0,
140140
(int)Poco::Net::WebSocket::FRAME_OP_PONG |
141-
(int)Poco::Net::WebSocket::FRAME_FLAG_FIN);
141+
(int)Poco::Net::WebSocket::FRAME_FLAG_FIN);
142142
} else if (Op == Poco::Net::WebSocket::FRAME_OP_CLOSE) {
143143
poco_information(Logger(),
144144
fmt::format("TELEMETRY-DISCONNECT({}): device wants to disconnect.", CId_));

src/rttys/RTTYS_server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,8 +610,8 @@ namespace OpenWifi {
610610

611611
case Poco::Net::WebSocket::FRAME_OP_PING: {
612612
Connection->WSSocket_->sendFrame("", 0,
613-
(int) Poco::Net::WebSocket::FRAME_FLAG_FIN |
614-
(int) Poco::Net::WebSocket::FRAME_OP_BINARY);
613+
(int)Poco::Net::WebSocket::FRAME_OP_PONG |
614+
(int)Poco::Net::WebSocket::FRAME_OP_BINARY);
615615
} break;
616616

617617
case Poco::Net::WebSocket::FRAME_OP_PONG: {

0 commit comments

Comments
 (0)