[jdev] Question about resource binding to server implementors

Vinod Panicker vinod.p at gmail.com
Tue Mar 28 00:45:48 CST 2006


On 3/28/06, Alexey Nezhdanov <snake at penza-gsm.ru> wrote:
> В сообщении от Вторник 28 Март 2006 09:06 Vinod Panicker написал(a):
> > Hi,
> >
> > Just wanted to check with the server implementors - Do you allow
> > multiple "connected" resources with the same resource identifier?
> >
> > If yes, how do you handle delivery of <iq/> stanzas addressed to the
> > full jid of the user.
> >
> > If no, how do you handle it when a client connects with a resource
> > identifier that is already in use?
> xmppd.py not allows that and drops previous connection with <conflict/> stream
> error.

According to RFC 3920, in this case, the server should return a
<conflict/> to the new connection.

From section 7 :

   Client binds a resource:

   <iq type='set' id='bind_2'>
     <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
       <resource>someresource</resource>
     </bind>
   </iq>

   Resource identifier is in use:

   <iq type='error' id='bind_2'>
     <bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
       <resource>someresource</resource>
     </bind>
     <error type='cancel'>
       <conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
     </error>
   </iq>

Note that the <conflict/> error is sent to the new resource and not
the currently connected one.

Regards,
Vinod.


More information about the JDev mailing list