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 | 500d7efbf490f85cb88449f6e28bc8b4162bea14 (patch) | |
tree | 08d9a6984f50cb48da7e594f17e557f86af966ae | |
parent | 3b7519cf785906af026f5d50f427f6fd240cf48b (diff) | |
download | prosody-500d7efbf490f85cb88449f6e28bc8b4162bea14.tar.gz prosody-500d7efbf490f85cb88449f6e28bc8b4162bea14.zip |
mod_websocket: Set FIN flag on ping frames (fixes #773)
-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 |