aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-04 13:28:10 +0100
committerKim Alvefur <zash@zash.se>2016-11-04 13:28:10 +0100
commit02919f09518951d7561b8adbb843e88c6fc262ac (patch)
tree08d9a6984f50cb48da7e594f17e557f86af966ae
parent24b2036f9e4292e15e1d313df6bbfd8bf00ad27d (diff)
downloadprosody-02919f09518951d7561b8adbb843e88c6fc262ac.tar.gz
prosody-02919f09518951d7561b8adbb843e88c6fc262ac.zip
mod_websocket: Set FIN flag on ping frames (fixes #773)
-rw-r--r--plugins/mod_websocket.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua
index a3f5318c..ea736800 100644
--- a/plugins/mod_websocket.lua
+++ b/plugins/mod_websocket.lua
@@ -293,7 +293,7 @@ end
local function keepalive(event)
local session = event.session;
if session.open_stream == session_open_stream then
- return session.conn:write(build_frame({ opcode = 0x9, }));
+ return session.conn:write(build_frame({ opcode = 0x9, FIN = true }));
end
end