Changeset

7314:e327e5b592f5

mod_websocket: Remove warning about unsolicited pong frames "MAY be sent unsolicited" per RFC 6455 (thanks mt)
author Kim Alvefur <zash@zash.se>
date Wed, 23 Mar 2016 14:31:35 +0100
parents 7312:b4e99602ae75
children 7315:4fd984d1e445
files plugins/mod_websocket.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);