[ejabberd] Ejabberd and Ruby/XMPP4R interaction?

Sylvain Niles sylvain.niles at gmail.com
Tue Nov 16 09:33:48 MSK 2010

If you run tcpdump on the client and filter for port 5222  then let the
connection idle till it resets you'll see who's generating the TCP reset
(your client or the server.) Do you have your client and the server on the
same network segment or is there a router/firewall in between? A tool like
wireshark can also help you analyze the dump if it looks like a network


On Mon, Nov 15, 2010 at 7:00 PM, Spencer Cheng <scheng at morphbius.com> wrote:

> Another problem I am running into is that my custom XMPP client is being
> disconnected from the server by a connection reset. I haven't been able to
> figure out whether this is a problem with how I've configured ejabberd, an
> XMPP4R library issue or some bug in my own XMPP client. I have tried
> disabling the c2s and s2s shapers but that didn't fix anything.
> There is nothing obvious (error reports, connection resets) in the ejabberd
> logs at the affected timestamps. My XMPP client runs happily for about 1/2
> hour or more before it gets a connection reset.
> Does anyone have any suggestions as to where I should look? Thanks for any
> help.
> Regards,
> Spencer
> ------------
> W, [2010-11-15T11:00:09.925628 #2588]  WARN -- : EXCEPTION:
>    Errno::ECONNRESET
>    Connection reset by peer
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:346:in `write'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:346:in `<<'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:346:in
> `send_data'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:344:in
> `synchronize'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:344:in
> `send_data'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:378:in `send'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:213:in
> `keepalive_loop'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:207:in `loop'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:207:in
> `keepalive_loop'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:83:in
> `connect'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:81:in
> `initialize'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:81:in `new'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:81:in
> `connect'
>    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:in `connect'
>    /Star/src/xmppclient.rb:57:in `connect'
>    /Star/src/xmppclient.rb:40:in `initialize'
>    /Star/src/xmppclient.rb:251:in `new'
>    /Star/src/xmppclient.rb:251
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20101115/e138c20a/attachment.html>

More information about the ejabberd mailing list