[jdev] Presence delivery of roster items

Vinod Panicker vinod.p at gmail.com
Thu Aug 11 06:03:48 CDT 2005


On 8/11/05, Trejkaz <trejkaz at trypticon.org> wrote:
> On Thu, 11 Aug 2005 17:29, Vinod Panicker wrote:
> > In this case, yes the flood will be individual presence stanza's that
> > come along from different parts of the world.  But there's no specific
> > information in the RFC of what has to be done about contact presence
> > which the server already has since they are local.
> 
> Well strictly speaking, I suppose that the case of not having to probe still
> exists if another of your own resources is already online, because all the
> state for your contacts would be present in the server already due to being
> probed earlier for the other resource.  State of other users' contacts might
> also be present in the server and not need to be probed.

Correct.

> The way I see it, the act of not probing is an optimisation.  Even for local
> users you might need to probe (suppose your server is distributed somehow,
> and that the two users are on different nodes), and if you don't, then it
> seems like you're just supposed to "pretend" you did.  I thought that was
> clear enoughm though, since all the servers already do it the same way
> without being told to.
> 
> But maybe the spec does need updating to clarify that, in which case the XMPP
> list is definitely the place to do that kind of stuff.

Of course common sense and prior experience with IM tech had already
given these answers, but I admit my mistake - I should have requested
some clarification for the sake of completeness on the xmpp list. 
I'll take this there.  Thanks for your patience and willingness to
rfc-speek.

> > > This much is plain commonsense.  If your contact's server doesn't even
> > > know you're online, it can't know you're there to send the presence to,
> > > let alone know when to send it. :-)
> >
> > As I was reffering to earlier, what if the contacts are local to the
> > server - the server knows that both contact and user are online.
> 
> It doesn't actually, if you haven't said you're present yet.  You might be a
> bot which has authenticated and is going to do some stuff without actually
> going "online."  In IM speak, "online" and "present" mean the same thing.  No
> presence, no online.

Agreed.

Regards,
Vinod.



More information about the JDev mailing list