projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f989d97
)
mod_websocket: Remove warning about unsolicited pong frames "MAY be sent unsolicited...
author
Kim Alvefur
<zash@zash.se>
Wed, 23 Mar 2016 13:31:35 +0000
(14:31 +0100)
committer
Kim Alvefur
<zash@zash.se>
Wed, 23 Mar 2016 13:31:35 +0000
(14:31 +0100)
plugins/mod_websocket.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_websocket.lua
b/plugins/mod_websocket.lua
index 274e587a1ca1fdcc6204491906c1a66ddad127ff..ecbfabddf77c535e638c1ac0d5fc977508ba2278 100644
(file)
--- a/
plugins/mod_websocket.lua
+++ b/
plugins/mod_websocket.lua
@@
-226,8
+226,7
@@
function handle_request(event)
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);