aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-10-06 15:27:39 +0200
committerKim Alvefur <zash@zash.se>2015-10-06 15:27:39 +0200
commit7284b55cc0e99284a7328a3e0b558fda5b9885b1 (patch)
tree9f001052bdb4ef8671269752d2400002ca982148 /plugins
parenta1b1932a9a385bd2d576b1a39b4931ca04171ce2 (diff)
downloadprosody-7284b55cc0e99284a7328a3e0b558fda5b9885b1.tar.gz
prosody-7284b55cc0e99284a7328a3e0b558fda5b9885b1.zip
mod_websocket: Import util.timer and session close timeout config option (thanks fairuz)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_websocket.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua
index d3252980..897d2709 100644
--- a/plugins/mod_websocket.lua
+++ b/plugins/mod_websocket.lua
@@ -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 parse_close = websocket_frames.parse_close;
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