Software /
code /
prosody
Changeset
6893:861790282dda
mod_websocket: Import util.timer and session close timeout config option (thanks fairuz)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 06 Oct 2015 15:27:39 +0200 |
parents | 6891:7f76c77ddcb8 |
children | 6894:f7203c7cb7ff |
files | plugins/mod_websocket.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_websocket.lua Fri Oct 02 12:16:47 2015 +0200 +++ b/plugins/mod_websocket.lua Tue Oct 06 15:27:39 2015 +0200 @@ -7,6 +7,7 @@ module:set_global(); +local add_task = require "util.timer".add_task; local add_filter = require "util.filters".add_filter; local sha1 = require "util.hashes".sha1; local base64 = require "util.encodings".base64.encode; @@ -24,6 +25,7 @@ local t_concat = table.concat; +local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5); local consider_websocket_secure = module:get_option_boolean("consider_websocket_secure"); local cross_domain = module:get_option("cross_domain_websocket"); if cross_domain then