Chris Mullins wrote:
Michael Finney Wrote:
Must the 'id' attribute of an IQ stanza be unique? I do not see the answer in RFC 3920.


Section 9.1.3 of Core says:

It is OPTIONAL for the value of the 'id' attribute to be unique globally, within a domain, or within a stream.

Much to my surprise, section 9.2.3 (IQ Semamtics), did not further
restrict this, and make the 'id' attribute unique on a stream. It only
says that the 'id' attribute is required for IQ packets.

The 'id' attribute is used by the entity that generates stanzas to track them. So for instance my client can use the 'id' attribute to associate IQ results and errors it receives with IQ gets and sets it has sent out (for service discovery, iq:time, etc.). These IDs are not intended to be used to track stanzas across the entire XMPP network, within a domain, or even within a stream (which would require IDs to be globally unique anyway).

Peter

--
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to