How to get client status when client's internet link broken?

hi folks,

i use the agsxmpp to develop the client side app, there’s property when use the connection object to connect to openfire: keepaliveinterval, the default value is 120, which means it send keep alive packet ervery two minutes, i thought it is some kind of heart beat to let the server know if the client is still online,but after the client connected, if i disconnect the client’s internet link, then opened the admin console at another pc,in the session tab, the client still remain online,after 5-6 minutes(sometimes need 30 minutes), the client session disappear from the session list. can i configure this to get client’s offline status in 30 seconds? 5 minutes is too long for me.thanks
motd.jar (12252 Bytes)

does any one know?

Not tried it, but:

There is a system property xmpp.client.idle, description is “Time in millesconds to disconnect an idle client.”. Default setting is 30 minutes (1800000 msec)

=> http://www.igniterealtime.org/community/docs/DOC-1061

You should be aware that there are some clients out there which are not able to send a heart beat signal. That’s why this defaults to such a high value.

Coolcat wrote:

Not tried it, but:

There is a system property xmpp.client.idle, description is “Time in millesconds to disconnect an idle client.”. Default setting is 30 minutes (1800000 msec)

=> http://www.igniterealtime.org/community/docs/DOC-1061

You should be aware that there are some clients out there which are not able to send a heart beat signal. That’s why this defaults to such a high value.

the agsxmpp client can send a heart beat signal, i tried to set the xmpp.client.idle to 30 sec,but the open fire still end client session after 5 minutes.don’t know why

the xmpp.idle.client does not work, so I need to do a manual check using a plugin on openfire.