mod_c2s: Set a default value for c2s_timeout (fixes #1036)

This commit is contained in:
Kim Alvefur 2017-11-10 07:11:03 +01:00
parent eb07e55b14
commit b395681f11

View file

@ -23,7 +23,7 @@ local xmlns_xmpp_streams = "urn:ietf:params:xml:ns:xmpp-streams";
local log = module._log;
local c2s_timeout = module:get_option_number("c2s_timeout");
local c2s_timeout = module:get_option_number("c2s_timeout", 300);
local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5);
local opt_keepalives = module:get_option_boolean("c2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true));