View Full Version : [Juser] Equal priority - what happens?
Phil Reynolds
05-13-2008, 11:26 AM
What actually happens if you have two clients (with different resources,
of course) logged in at the same priority and a message comes in
directed at no particular resource? (assuming this situation is allowed
in the first place)
--
Phil Reynolds
o ____ mail: phil-jabber (AT) tinsleyviaduct (DOT) com
|L_ \ / Web: http://www.tinsleyviaduct.com/phil/
(_)- \/ Waltham 66, Emley Moor 69, Droitwich 79, Windows 95
_______________________________________________
This is JUser -- a mailing list for end
users of Jabber clients.
To unsubscribe, go to the following web
page, scroll all the way down, and type
in your email address:
http://mail.jabber.org/mailman/listinfo/juser
_______________________________________________
El Martes 13 Mayo 2008, Phil Reynolds escribió:
> What actually happens if you have two clients (with different resources,
> of course) logged in at the same priority and a message comes in
> directed at no particular resource? (assuming this situation is allowed
> in the first place)
From RFC3921, page 86:
> 4. Else if the JID is of the form <user@domain> and there is at
> least one available resource available for the user, the
> recipient's server MUST follow these rules:
>
> 1. For message stanzas, the server SHOULD deliver the stanza to
> the highest-priority available resource (if the resource did
> not provide a value for the <priority/> element, the server
> SHOULD consider it to have provided a value of zero). If two
> or more available resources have the same priority, the
> server MAY use some other rule (e.g., most recent connect
> time, most recent activity time, or highest availability as
> determined by some hierarchy of <show/> values) to choose
> between them or MAY deliver the message to all such
> resources. However, the server MUST NOT deliver the stanza
> to an available resource with a negative priority; if the
> only available resource has a negative priority, the server
> SHOULD handle the message as if there were no available
> resources (defined below). In addition, the server MUST NOT
> rewrite the 'to' attribute (i.e., it MUST leave it as
> <user@domain> rather than change it to <user@domain/
> resource>).
>
> 2. For presence stanzas other than those of type "probe", the
> server MUST deliver the stanza to all available resources;
> for presence probes, the server SHOULD reply based on the
> rules defined in Presence Probes (Section 5.1.3). In
> addition, the server MUST NOT rewrite the 'to' attribute
> (i.e., it MUST leave it as <user@domain> rather than change
> it to <user@domain/resource>).
>
> 3. For IQ stanzas, the server itself MUST reply on behalf of the
> user with either an IQ result or an IQ error, and MUST NOT
> deliver the IQ stanza to any of the available resources.
> Specifically, if the semantics of the qualifying namespace
> define a reply that the server can provide, the server MUST
> reply to the stanza on behalf of the user; if not, the server
> MUST reply with a <service-unavailable/> stanza error.
_______________________________________________
This is JUser -- a mailing list for end
users of Jabber clients.
To unsubscribe, go to the following web
page, scroll all the way down, and type
in your email address:
http://mail.jabber.org/mailman/listinfo/juser
_______________________________________________
Peter Saint-Andre
05-13-2008, 04:06 PM
On 05/13/2008 3:24 AM, Phil Reynolds wrote:
> What actually happens if you have two clients (with different resources,
> of course) logged in at the same priority and a message comes in
> directed at no particular resource? (assuming this situation is allowed
> in the first place)
The short answer is: it depends on which server software is running at
the IM service you're connected to (e.g., Google Talk delivers to all
resources, but other services make a guess about the best resource based
on things like last connection time, last presence change, availability
status, and the like).
The long answer is in RFC 3921, as someone posted to the list.
Peter
--
Peter Saint-Andre
https://stpeter.im/
_______________________________________________
This is JUser -- a mailing list for end
users of Jabber clients.
To unsubscribe, go to the following web
page, scroll all the way down, and type
in your email address:
http://mail.jabber.org/mailman/listinfo/juser
_______________________________________________
Phil Reynolds
05-13-2008, 07:20 PM
On Tue, May 13, 2008 at 08:04:23AM -0600, Peter Saint-Andre wrote:
> On 05/13/2008 3:24 AM, Phil Reynolds wrote:
> > What actually happens if you have two clients (with different resources,
> > of course) logged in at the same priority and a message comes in
> > directed at no particular resource? (assuming this situation is allowed
> > in the first place)
>
> The short answer is: it depends on which server software is running at
> the IM service you're connected to (e.g., Google Talk delivers to all
> resources, but other services make a guess about the best resource based
> on things like last connection time, last presence change, availability
> status, and the like).
>
> The long answer is in RFC 3921, as someone posted to the list.
I run my own ejabberd.
--
Phil Reynolds
o ____ mail: phil-jabber (AT) tinsleyviaduct (DOT) com
|L_ \ / Web: http://www.tinsleyviaduct.com/phil/
(_)- \/ Waltham 66, Emley Moor 69, Droitwich 79, Windows 95
_______________________________________________
This is JUser -- a mailing list for end
users of Jabber clients.
To unsubscribe, go to the following web
page, scroll all the way down, and type
in your email address:
http://mail.jabber.org/mailman/listinfo/juser
_______________________________________________
Kevin Smith
05-13-2008, 10:35 PM
On Tue, May 13, 2008 at 10:24 AM, Phil Reynolds
<phil-jabber (AT) tinsleyviaduct (DOT) com> wrote:
> What actually happens if you have two clients (with different resources,
> of course) logged in at the same priority and a message comes in
> directed at no particular resource? (assuming this situation is allowed
> in the first place)
The server gets to decide where to route it.
/K
_______________________________________________
This is JUser -- a mailing list for end
users of Jabber clients.
To unsubscribe, go to the following web
page, scroll all the way down, and type
in your email address:
http://mail.jabber.org/mailman/listinfo/juser
_______________________________________________
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.