ejabberd - Comments for "Delay User Unavailable Presence" https://www.ejabberd.im/node/4603 en mhoang wrote: Hi, As I have https://www.ejabberd.im/node/4603#comment-57189 <div class="quote-msg"> <div class="quote-author"><em>mhoang</em> wrote:</div> <p>Hi,<br /> As I have witnessed in a web XMPP application, if a user closes browser window, they appear online in every one's roster as online for about another 30 seconds, before going offline.<br /> Is this an issue caused by network latency or is this done purposefully by ejabberd?</p></div> <p>In the ejabberd source code file src/web/ejabberd_http_bind.erl there is a line:</p> <p>-define(MAX_INACTIVITY, 30000). % msecs to wait before terminating</p> <div class="quote-msg"> <div class="quote-author"><em>mhoang</em> wrote:</div> <p>After a user closes their browser window, is there a way to further delay the unavailable/offline execution?</p></div> <p>You can configure the mod_http_bind option max_inactivity. Search that in the ejabberd Guide.</p> Sun, 27 Mar 2011 00:17:24 +0000 mfoss comment 57189 at https://www.ejabberd.im