comparison mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 6512:f6c83a8425f2

mod_storage_xmlarchive: Set explicit values for stream parser Wouldn't count on this defaulting to 1MB forever, the default s2s limit seems more sane.
author Kim Alvefur <zash@zash.se>
date Tue, 07 Apr 2026 21:09:00 +0200
parents 3044e14fcaa0
children 5fb466693e85
comparison
equal deleted inserted replaced
6511:fe8738747d91 6512:f6c83a8425f2
194 result = stanza; 194 result = stanza;
195 end 195 end
196 196
197 local stream_session = { notopen = true }; 197 local stream_session = { notopen = true };
198 local stream_callbacks = { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" }; 198 local stream_callbacks = { handlestanza = cb, stream_ns = "jabber:client", default_ns = "jabber:client" };
199 local stream = new_stream(stream_session, stream_callbacks); 199 local stream = new_stream(stream_session, stream_callbacks, 512*1024);
200 local dates = self:dates(username) or empty; 200 local dates = self:dates(username) or empty;
201 local function reset_stream() 201 local function reset_stream()
202 stream:reset(); 202 stream:reset();
203 stream_session.notopen = true; 203 stream_session.notopen = true;
204 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag()); 204 stream:feed(st.stanza("stream", { xmlns = "jabber:client" }):top_tag());