[ejabberd] why is mod_offline.handle_info implemented?

Holger Weiß holger at zedat.fu-berlin.de
Sun Mar 1 21:28:27 MSK 2015

* Gaurav Jain <monkeyfdude at gmail.com> [2015-03-01 09:47]:
> You note in the end "*Whether or not it would be a good idea depends on
> your module*" has got me worried/scared but I think I will crash and learn.

A good reason to run stuff in a separate (gen_server) process would be
the requirement to maintain some state in that process.  Other reasons
might be that the offline messages should be handled asynchronously
and/or sequentially.


More information about the ejabberd mailing list