[ejabberd] Ejabberd and Ruby/XMPP4R interaction?

Spencer Cheng scheng at morphbius.com
Tue Nov 16 06:00:40 MSK 2010


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
 


More information about the ejabberd mailing list