[ejabberd] xml-not-well-formed error
George Catalin Serbanut
cgsmcmlxxv at gmail.com
Mon Aug 15 12:54:10 MSD 2011
I've met that problem as well. After investigations, I found out that exmpp
gen_tcp returns error for clients which are in a traffic jam (trying to send
messages faster/larger than exmpp can digest), the gen_server crashes
repeatedly, the supervisor reaches the limit of restart rate and, so, the
gen_server is shut down completely. To solve that problem, either set a
guard for the messages size and speed, either increase the restart rate in
your supervisor or switch from generic server with supervisor to independent
processes with watchdog. For me, the last one worked the best because in
case of a crash, I do not lose all the messages from all the clients, but
only from that client and I also purged the fsm by allowing that connection
to be closed.
On Mon, Aug 15, 2011 at 10:26 AM, Konstantin Khomoutov <
flatworm at users.sourceforge.net> wrote:
> On Mon, 15 Aug 2011 08:06:05 +0000
> Alexander Kuleshov <kuleshovmail at gmail.com> wrote:
> > I run ejabberd and bot written with exmpp.
> > I send the same type commands from client. And when i send this
> > command many time i get error:
> > =ERROR REPORT==== 2011-08-15 13:47:09 ===
> > In what may be the reason? First 20 - 30 command bot answer and then
> > it crash with this error.
> I think without presenting a record of the suspicious TCP session
> (captured by tcpdump for instance) this question has no sense.
> ejabberd mailing list
> ejabberd at jabber.ru
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ejabberd