[jdev] Presence hiccups
Adam Pisoni
apisoni at geni.com
Wed Oct 1 16:13:32 CDT 2008
I wrote the yammer bot as an xmpp component. This component keeps
track of users' presence by resource, as I think it should. The
problem has come if, for reasons I can't identify yet, occasionally an
unavail presence for a resource doesn't make it to the component. In
this case I have a stale resource marked as online. The user may come
on and off with other resources, which will be marked accordingly, but
will always appear online because of that stale resource. We care if
they are on/offline because we do not send offline users messages.
Most xmpp servers we send to send back a 503 if we send a message to a
user who is offline. When we get a 503 we mark that JID as offline
so we do not continue sending them messages. The real issue is gtalk,
which supports offline messaging and never tells you whether a JID is
offline. A few of our users have complained that they're still
getting messages from us when they're offline, which gtalk them emails
them. I know the rabbiter guys have talked about having the same
problems. What is the best practice as far as how to deal with this.
Do you expire resources eventually? Or probe if a resource hasn't
been updated in some amount of time?
Any ideas?
Thanks,
adam
More information about the JDev
mailing list