[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp
Jan Holesovsky
kendy at collabora.com
Wed Jan 6 08:21:15 PST 2016
loolwsd/LOOLWSD.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 28646c1a53526b0c458e448cf7f279e9096d4e75
Author: Jan Holesovsky <kendy at collabora.com>
Date: Wed Jan 6 15:55:00 2016 +0100
loolwsd: Answer the PING's with proper PONG's.
diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 2669011..a4bec81 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -216,7 +216,8 @@ void SocketProcessor(std::shared_ptr<WebSocket> ws,
if ((flags & WebSocket::FRAME_OP_BITMASK) == WebSocket::FRAME_OP_PING)
{
- ws->sendFrame("", 0, WebSocket::FRAME_OP_PONG);
+ ws->sendFrame("PONG", 4);
+ continue;
}
else if ((flags & WebSocket::FRAME_OP_BITMASK) == WebSocket::FRAME_OP_PONG)
{
More information about the Libreoffice-commits
mailing list