# HG changeset patch # User Kim Alvefur # Date 1458739895 -3600 # Node ID e327e5b592f5e5cf1c70ad9bc2ccc7a65dcd95db # Parent b4e99602ae753276096a14a9c9a568a51e4abf71 mod_websocket: Remove warning about unsolicited pong frames "MAY be sent unsolicited" per RFC 6455 (thanks mt) diff -r b4e99602ae75 -r e327e5b592f5 plugins/mod_websocket.lua --- a/plugins/mod_websocket.lua Wed Mar 23 12:17:28 2016 +0000 +++ b/plugins/mod_websocket.lua Wed Mar 23 14:31:35 2016 +0100 @@ -226,8 +226,7 @@ frame.opcode = 0xA; conn:write(build_frame(frame)); return ""; - elseif opcode == 0xA then -- Pong frame - module:log("warn", "Received unexpected pong frame: " .. tostring(frame.data)); + elseif opcode == 0xA then -- Pong frame, MAY be sent unsolicited, eg as keepalive return ""; else log("warn", "Received frame with unsupported opcode %i", opcode);