mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
mod_c2s: Set a default value for c2s_timeout (fixes #1036)
This commit is contained in:
parent
eb07e55b14
commit
b395681f11
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue