ejabberd - Comments for "ejabberd disconnects my bots every day at 00:43" https://www.ejabberd.im/node/4742 en You want to know who and how https://www.ejabberd.im/node/4742#comment-57426 <p>You want to know who and how provokes the sessions to close.<br /> Maybe ejabberd closes the XMPP session of a user because<br /> the TCP connection of that XMPP session was closed.</p> <p>Are the bots running in a remote machine, where a network program<br /> in the middle may close the TCP connections?</p> <p>If that happens exactly at 00.43 everyday, try adding 5 minutes to the clock of the machine.<br /> Is now the session closing delayed 5 minutes too? Now advance the clock 10 minutes,<br /> is now the session clossing advanced 10 minutes?</p> <p>Clients get disconnected, but ejabberd itself doesn't stop?<br /> One way I know to close XMPP sessions is to call "ejabberdctl stop",<br /> and then ejabberd logs:</p> <pre> (ejabberd@localhost)1&gt; =INFO REPORT==== 6-Jun-2011::10:28:02 === I(&lt;0.456.0&gt;:mod_muc_room:705) : Stopping MUC room room123@conference.localhost =INFO REPORT==== 6-Jun-2011::10:28:02 === I(&lt;0.453.0&gt;:ejabberd_c2s:1454) : ({socket_state,gen_tcp,#Port&lt;0.5221&gt;,&lt;0.452.0&gt;}) Close session for badlop@localhost/work =INFO REPORT==== 6-Jun-2011::10:28:07 === I(&lt;0.39.0&gt;:ejabberd_app:89) : ejabberd 2.1.7 is stopped in the node ejabberd@localhost </pre> Mon, 06 Jun 2011 08:38:07 +0000 mfoss comment 57426 at https://www.ejabberd.im ... and, at the client side, https://www.ejabberd.im/node/4742#comment-57424 <p>... and, at the client side, I get "host unreachable". Any ideas, why?</p> Sun, 05 Jun 2011 10:12:34 +0000 dotz comment 57424 at https://www.ejabberd.im