Mercurial > prosody-hg
comparison util/xmppstream.lua @ 11543:63fd4c8465fb 0.11
util.xmppstream: Reduce default xmppstream limit to 1MB
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 10 May 2021 16:44:55 +0100 |
| parents | db61e33bbd41 |
| children | b21d8c286973 |
comparison
equal
deleted
inserted
replaced
| 11542:c358537c0878 | 11543:63fd4c8465fb |
|---|---|
| 20 -- COMPAT: w/LuaExpat 1.1.0 | 20 -- COMPAT: w/LuaExpat 1.1.0 |
| 21 local lxp_supports_doctype = pcall(lxp.new, { StartDoctypeDecl = false }); | 21 local lxp_supports_doctype = pcall(lxp.new, { StartDoctypeDecl = false }); |
| 22 local lxp_supports_xmldecl = pcall(lxp.new, { XmlDecl = false }); | 22 local lxp_supports_xmldecl = pcall(lxp.new, { XmlDecl = false }); |
| 23 local lxp_supports_bytecount = not not lxp.new({}).getcurrentbytecount; | 23 local lxp_supports_bytecount = not not lxp.new({}).getcurrentbytecount; |
| 24 | 24 |
| 25 local default_stanza_size_limit = 1024*1024*10; -- 10MB | 25 local default_stanza_size_limit = 1024*1024*1; -- 1MB |
| 26 | 26 |
| 27 local _ENV = nil; | 27 local _ENV = nil; |
| 28 -- luacheck: std none | 28 -- luacheck: std none |
| 29 | 29 |
| 30 local new_parser = lxp.new; | 30 local new_parser = lxp.new; |
