Software /
code /
prosody
Changeset
11547:dd21eb632f52 0.11
util.xmppstream: Allow dynamically configuring the stanza size limit for a stream
This may be useful for any plugins that want to experiment with different policies
for stanza size limits (e.g. unauthenticated vs authenticated streams).
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 10 May 2021 17:03:27 +0100 |
parents | 11546:b21d8c286973 |
children | 11548:55ef50d6cf65 |
files | util/xmppstream.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/util/xmppstream.lua Mon May 10 17:02:37 2021 +0100 +++ b/util/xmppstream.lua Mon May 10 17:03:27 2021 +0100 @@ -293,6 +293,9 @@ return ok, err; end, set_session = meta.set_session; + set_stanza_size_limit = function (_, new_stanza_size_limit) + stanza_size_limit = new_stanza_size_limit; + end; }; end