Mercurial > prosody-hg
changeset 14123:166ac7d65cb6 13.0
util.xmppstream: Reduce default stanza size limit to 10k for safety
To provide a safe default in case the limit is forgotten.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 07 Apr 2026 20:44:41 +0200 |
| parents | 8a4417d32b0f |
| children | a4327478678f |
| files | util/xmppstream.lua |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/xmppstream.lua Tue Apr 07 20:35:41 2026 +0200 +++ b/util/xmppstream.lua Tue Apr 07 20:44:41 2026 +0200 @@ -22,7 +22,7 @@ local lxp_supports_xmldecl = pcall(lxp.new, { XmlDecl = false }); local lxp_supports_bytecount = not not lxp.new({}).getcurrentbytecount; -local default_stanza_size_limit = 1024*1024*1; -- 1MB +local default_stanza_size_limit = 10000; -- Minimum stanza size limit local _ENV = nil; -- luacheck: std none
