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 problem.<div>
<br></div><div>-Sylvain</div><div><br><div><div><br><br><div class="gmail_quote">On Mon, Nov 15, 2010 at 7:00 PM, Spencer Cheng <span dir="ltr"><<a href="mailto:scheng@morphbius.com">scheng@morphbius.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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.<br>

<br>
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.<br>
<br>
Does anyone have any suggestions as to where I should look? Thanks for any help.<br>
<br>
Regards,<br>
Spencer<br>
<br>
------------<br>
W, [2010-11-15T11:00:09.925628 #2588]  WARN -- : EXCEPTION:<br>
    Errno::ECONNRESET<br>
    Connection reset by peer<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:346:in `write'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:346:in `<<'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:346:in `send_data'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:344:in `synchronize'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:344:in `send_data'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/stream.rb:378:in `send'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:213:in `keepalive_loop'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:207:in `loop'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:207:in `keepalive_loop'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:83:in `connect'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:81:in `initialize'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:81:in `new'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:81:in `connect'<br>
    /var/lib/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:in `connect'<br>
    /Star/src/xmppclient.rb:57:in `connect'<br>
    /Star/src/xmppclient.rb:40:in `initialize'<br>
    /Star/src/xmppclient.rb:251:in `new'<br>
    /Star/src/xmppclient.rb:251<br>
<br>
_______________________________________________<br>
ejabberd mailing list<br>
<a href="mailto:ejabberd@jabber.ru">ejabberd@jabber.ru</a><br>
<a href="http://lists.jabber.ru/mailman/listinfo/ejabberd" target="_blank">http://lists.jabber.ru/mailman/listinfo/ejabberd</a><br>
</blockquote></div><br></div></div></div>