diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-04 13:28:10 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-04 13:28:10 +0100 |
commit | 02919f09518951d7561b8adbb843e88c6fc262ac (patch) | |
tree | 08d9a6984f50cb48da7e594f17e557f86af966ae /plugins/mod_websocket.lua | |
parent | 24b2036f9e4292e15e1d313df6bbfd8bf00ad27d (diff) | |
download | prosody-02919f09518951d7561b8adbb843e88c6fc262ac.tar.gz prosody-02919f09518951d7561b8adbb843e88c6fc262ac.zip |
mod_websocket: Set FIN flag on ping frames (fixes #773)
Diffstat (limited to 'plugins/mod_websocket.lua')
-rw-r--r-- | plugins/mod_websocket.lua | 2 |
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 |