diff options
author | Kim Alvefur <zash@zash.se> | 2020-05-31 22:39:34 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-05-31 22:39:34 +0200 |
commit | c90918837e1a9269f85a79f858bca0e5e988e9db (patch) | |
tree | 2bd65e32f758ac9506a77b413b95faac81e22a3b /plugins/mod_s2s/mod_s2s.lua | |
parent | f5f2a709cddd5822443011787cbdee0ba4480cf4 (diff) | |
download | prosody-c90918837e1a9269f85a79f858bca0e5e988e9db.tar.gz prosody-c90918837e1a9269f85a79f858bca0e5e988e9db.zip |
mod_c2s,mod_s2s: Make stanza size limits configurable0.11.7
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index 3f56b953..5439aa96 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -37,6 +37,7 @@ local secure_auth = module:get_option_boolean("s2s_secure_auth", false); -- One local secure_domains, insecure_domains = module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; local require_encryption = module:get_option_boolean("s2s_require_encryption", false); +local stanza_size_limit = module:get_option_number("s2s_stanza_size_limit"); -- TODO come up with a sensible default (util.xmppstream defaults to 10M) local measure_connections = module:measure("connections", "amount"); local measure_ipv6 = module:measure("ipv6", "amount"); @@ -550,7 +551,7 @@ end -- Session initialization logic shared by incoming and outgoing local function initialize_session(session) - local stream = new_xmpp_stream(session, stream_callbacks); + local stream = new_xmpp_stream(session, stream_callbacks, stanza_size_limit); session.thread = runner(function (stanza) if stanza.name == nil then |