Software /
code /
prosody
Changeset
7716:779a9ef6b4fd
mod_websocket: Set FIN flag on ping frames (fixes #773)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 04 Nov 2016 13:28:10 +0100 |
parents | 7715:08989f8464b9 |
children | 7717:9c8eb0239eef 7718:c58075c4d375 |
files | plugins/mod_websocket.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_websocket.lua Thu Nov 03 23:56:17 2016 +0100 +++ b/plugins/mod_websocket.lua Fri Nov 04 13:28:10 2016 +0100 @@ -293,7 +293,7 @@ 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