[ejabberd] Limiting message flood on joining a chatroom

Srirang Doddihal om.brahmana at gmail.com
Thu Mar 3 17:10:58 MSK 2011


On Thu, Mar 3, 2011 at 3:33 AM, Armando Di Cianno
<armando.dicianno at gmail.com> wrote:
> On Wed, Mar 2, 2011 at 4:58 PM, Srirang Doddihal <om.brahmana at gmail.com> wrote:
>> Hi,
>>
>> I recently installed ejabberd (for the first time) on Ubuntu 10.04 and
>> set it up as a simple chat server. It's working mostly fine except for
>> one issue related to multi-user chatrooms.
>
> Documentation for mod_muc is pretty good:
>  http://www.process-one.net/docs/ejabberd/guide_en.html#htoc48
>
> They value you want to change is "{history_size, Size}", and the
> default is 20. Lowering it should help.

Thank you. That is indeed what I was looking for. It's all working
very well now.

>
> __armando
>
>
>
>> When a user joins a chatroom, a flood of messages previously sent by
>> other users in the chatroom are being sent. As a result the user is
>> bombarded with a huge list at join time. How can I limit the number of
>> previous messages that a user can get on joining a room? I would
>> ideally want it to me something like 10 messages. I have not been able
>> to find any configuration element controlling this. The regular MUC
>> chat and one-to-one chat between users is working absolutely fine.
>> Only this initial flood needs to be controlled.
>>
>> Any help in configuring this appropriately is greatly appreciated.
>>
>> Here is my setup :
>>
>> I am using the strophe.js library to talk to ejabberd server from my
>> web front-end (via http-bind). There is an nginx web server sitting
>> between the client and ejabberd which just proxies the requests.
>>
>> P.S : I am new to XMPP and ejabberd.
>>
>> --
>> Regards,
>> Srirang G Doddihal
>> Brahmana.
>>
>> The LIGHT shows the way.
>> The WISE see it.
>> The BRAVE walk it.
>> The PERSISTENT endure and complete it.
>>
>> I want to do it all ALONE.
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>



-- 
Regards,
Srirang G Doddihal
Brahmana.

The LIGHT shows the way.
The WISE see it.
The BRAVE walk it.
The PERSISTENT endure and complete it.

I want to do it all ALONE.


More information about the ejabberd mailing list