Stanza routing to multiple resources of equal priority

Would somebody please advise as to how ejabberd has chosen to handle RFC 3921:11.1?

"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 values) to choose between them or MAY deliver the message to all such resources"

What is the intended behaviour of ejabberd in this situation, please? Will each of the resources receive the message, given that they are both of an equal non-negative priority?

Thanks.

Re: Stanza routing to multiple resources of equal priority

In the case of message to full jid: It will route the message to the resource with the most recent connect time.
In the case of message to bare jid: It will route the message to all available highest non-negative resources.

Thanks, zinid. That's

Thanks, zinid. That's exactly what I was hoping for.

Hi, I have run some tests

Hi,

I have run some tests with ejabberd and think the routing rules you are mentioning apply even if the resource is available. This would contradict the first sentence in 11.1:
"If the JID is of the form < user@domain/resource > and an available resource matches the full JID, the recipient's server MUST deliver the stanza to that resource."

Is that on purpose?

Impi wrote: I have run some

Impi wrote:

I have run some tests with ejabberd and think the routing rules you are mentioning apply even if the resource is available.

I have run tests with ejabberd 2.1.8, and I think you are wrong.

If a message is sent to a full jid, and a session exists with that full jid, ejabberd sends the message to that resource.

Syndicate content