Comparison

util/xmppstream.lua @ 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
parent 11546:b21d8c286973
child 11560:3bbb1af92514
comparison
equal deleted inserted replaced
11546:b21d8c286973 11547:dd21eb632f52
291 _parser:close(); 291 _parser:close();
292 end 292 end
293 return ok, err; 293 return ok, err;
294 end, 294 end,
295 set_session = meta.set_session; 295 set_session = meta.set_session;
296 set_stanza_size_limit = function (_, new_stanza_size_limit)
297 stanza_size_limit = new_stanza_size_limit;
298 end;
296 }; 299 };
297 end 300 end
298 301
299 return { 302 return {
300 ns_separator = ns_separator; 303 ns_separator = ns_separator;