Hi, everyone,<br><br>Is anyone tell me how to take the http_bind's inactive users offline?<br><br>My website's XMPP service is taking use of JWCHAT and ejabberd-2.0.3's http_bind on Ubuntu Linux.<br><br>I found out that lots of visitors are online by "ejabberdctl connected-users", but in fact most of them have gone offline by checking our website's session universal storage. <br>
<br>By the way, when I use "killall -9 firefox on my desktop", on the server side I found my account is still online. Then I make "max_inactivity" to 10. However after 10 seconds the inactive users are still online. Therefore I think many visitor directly shut down the browser, and
ejabberd's does not take the inactive or timeout user offline.<br><br>The contents of ejabberd.cfg are listed as follows:<br>==========================================<div id=":12h" class="ii gt">{loglevel, 5}.<br><br>
{hosts, ["<a href="http://mydomain.org/" target="_blank">mydomain.org</a>"]}.<br><br>{listen,<br>
[<br><br> {5222, ejabberd_c2s, [<br> {certfile, "/usr/local/ejabberd-2.0.4/conf/server.pem"}, starttls,<br> {access, c2s},<br> {shaper, c2s_shaper},<br> {max_stanza_size, 65536}<br>
]},<br><br> {5280, ejabberd_http, [<br> http_bind, <br> web_admin<br> ]}<br> ]}.<br><br><br>{auth_method, external}.<br>{extauth_program, "/usr/local/ejabberd-2.0.4/bin/<a href="http://ejabberd_extauth_zeuux.com.py/" target="_blank">ejabberd_extauh.py</a>"}.<br>
<br>{odbc_server, {pgsql, "localhost", "ejabberd", "ejabberd", "ejabberd"}}.<br>{odbc_pool_size, 5}.<br><br>{pgsql_users_number_estimate, true}.<br><br>{shaper, normal, {maxrate, 5000000}}.<br>
<br><br>{shaper, fast, {maxrate, 50000000}}.<br><br><br>{acl, admin, {user, "qingran", "<a href="http://mydomain.org/" target="_blank">mydomain.org</a>"}}.<br><br>{acl, local, {user_regexp, ""}}.<br>
<br>{access, max_user_sessions, [{5, all}]}.<br>
<br>{access, local, [{allow, local}]}.<br><br>{access, c2s, [{deny, blocked},<br> {allow, all}]}.<br><br>{access, c2s_shaper, [{none, admin},<br> {normal, all}]}.<br><br>{access, s2s_shaper, [{deny, all}]}.<br>
<br><br>{access, announce, [{allow, admin}]}.<br><br>{access, configure, [{allow, admin}]}.<br><br><br>{access, muc_admin, [{allow, admin}]}.<br><br><br>{access, muc, [{allow, all}]}.<br><br>{access, register, [{deny, all}]}.<br>
<br><br>{access, pubsub_createnode, [{allow, all}]}.<br><br>{language, "en"}.<br><br><br>%%% =======<br>%%% MODULES<br><br>%%<br>%% Modules enabled in all ejabberd virtual hosts.<br>%%<br>{modules,<br> [<br>
{mod_adhoc, []},<br> {mod_announce, [{access, announce}]}, % requires mod_adhoc<br> {mod_caps, []}, <br> {mod_configure,[]}, % requires mod_adhoc<br> {mod_disco, []},<br><br> {mod_http_bind,[ {max_inactivity, 10} ]},<br>
<br> {mod_offline, []},<br> {mod_privacy_odbc, []},<br> {mod_private_odbc, []},<br><br> {mod_pubsub, [ % requires mod_caps<br> {access_createnode, pubsub_createnode},<br> {plugins, ["default", "pep"]}<br>
]},<br> {mod_roster_odbc, []},<br><br> {mod_shared_roster,[]},<br><br> {mod_time, []},<br> {mod_vcard_odbc, []},<br> {mod_version, []}<br> ]}.<br><br>===============================================================</div>
<br>Thanks very much.<br clear="all"><br>-- <br>夏清然<br>Xia Qingran<br><a href="mailto:qingran.xia@gmail.com">qingran.xia@gmail.com</a><br>Sent from: Beijing 11 China.<br>Isaac Asimov - "I do not fear computers. I fear the lack of them."