max_stanza_size, what are the effects when this is set very large?

I want to set my max_stanza_size to a very large value, ~O(megabytes), to allow for the possibility of users sending large messages.
I don't expect this to happen frequently - this is just precautionary.
Will this kill my server memory/drag things down to a crawl/send me to hell?
I read that the Erlang implementation has no concept of max size but I'm worried that something somewhere might be reserving max_stanza_size amount of space for each message?

callipygous wrote: I'm

callipygous wrote:

I'm worried that something somewhere might be reserving max_stanza_size amount of space for each message?

That max_stanza_size value is read from ejabberd.cfg and passed between several parts of ejabberd. Following its trail, I found it's really used only in one place, here:
https://github.com/processone/ejabberd/blob/2.1.x/src/xml_stream.erl#L129
As you can see, MaxSize is used only to determine if a stanza just received is too large or not.

So, that option is not used to reserve memory in advance.

Thanks Badlop, I don't know

Thanks Badlop, I don't know Erlang but that was the answer I was hoping for.

regards,

Syndicate content