Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat: Rises the stanza limit for unlimited jids (jicofo).

Дамян Минковed98eca3267c
diff --git a/resources/prosody-plugins/mod_limits_exception.lua b/resources/prosody-plugins/mod_limits_exception.lua
index 2fc830870c..c3c2767e0a 100644
--- a/resources/prosody-plugins/mod_limits_exception.lua
+++ b/resources/prosody-plugins/mod_limits_exception.lua
@@ -7,6 +7,9 @@ end
local unlimited_jids = module:get_option_inherited_set("unlimited_jids", {});
+-- rises the limit of the stanza size for the unlimited jids, default is 10MB
+local unlimited_stanza_size_limit = module:get_option_number("unlimited_size", 10*1024*1024);
+
if unlimited_jids:empty() then
return;
end
@@ -20,5 +23,10 @@ module:hook("authentication-success", function (event)
elseif session.throttle then
session.throttle = nil;
end
+
+ if unlimited_stanza_size_limit then
+ module:log('info', 'Setting stanza size limits for %s to %s', jid, unlimited_stanza_size_limit)
+ session.stream:set_stanza_size_limit(unlimited_stanza_size_limit);
+ end
end
end);