Le 17/09/2012 11:02, Tomasz Sterna a écrit :
Dnia 2012-09-17, pon o godzinie 10:55 +0200, Alexandre Jousset pisze:

         The question was:

  > But then - what happens if two resources of the same priority get
  > connected to two different sm instances?

         After reading the link I posted in my previous message, I
don't see what could be the problem with this...?

         The router should send the messages to both SMs where the
resources with same priority are bound, they will know what to do with
them.

What about iq and/or presence?

- iq-get would get two responses then
- presence-subscribe could get both accept and deny, which to use?

        This would cause problems only if the message is sent to "user@domain". And in that case, 
the link I've posted (rfc3921) says that for IQs the server should reply with an error on behalf of the user. 
And "For presence stanzas other than those of type "probe", the server MUST deliver the stanza 
to all available resources; ...". I suppose that in the latter case the response includes the full 
JID...?
--
--      \^/                                            --
--    -/ O \---------------------------------------    --
--   | |/ \|      Alexandre (Midnite) Jousset      |   --
--    -|___|---------------------------------------    --


Reply via email to