Diff

plugins/mod_c2s.lua @ 11560:3bbb1af92514

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 May 2021 11:17:13 +0100
parent 11524:6de302b53a3e
parent 11540:1937b3c3efb5
child 11608:b2610460d9ab
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Fri May 07 16:47:58 2021 +0200
+++ b/plugins/mod_c2s.lua	Thu May 13 11:17:13 2021 +0100
@@ -27,7 +27,7 @@
 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));
-local stanza_size_limit = module:get_option_number("c2s_stanza_size_limit"); -- TODO come up with a sensible default (util.xmppstream defaults to 10M)
+local stanza_size_limit = module:get_option_number("c2s_stanza_size_limit", 1024*256);
 
 local measure_connections = module:metric("gauge", "connections", "", "Established c2s connections", {"host", "type", "ip_family"});