XEP-0198: Add handled-count-to-high specification.

This commit is contained in:
Guus der Kinderen 2018-07-26 22:29:39 +02:00
parent 07268406f6
commit d688a35e52
1 changed files with 12 additions and 1 deletions

View File

@ -432,7 +432,7 @@
</failed>
]]></example>
<p>Stream management errors SHOULD be considered recoverable; however, misuse of stream management MAY result in termination of the stream.</p>
<p>When a remote entity acknowledges that it has handled a number of stanzas that is higher than the amount of stanzas that it was sent (by sending an 'h' value that is to high), the local entity SHOULD generate a stream error and close the stream:</p>
<p>When a remote entity acknowledges that it has handled a number of stanzas that is higher than the amount of stanzas that it was sent (by sending an 'h' value that is to high), the local entity SHOULD generate a undefined-condition stream error that includes a handled-count-to-high element, and close the stream:</p>
<example caption='Entity closes stream because peer acknowledges more stanzas than it was sent'><![CDATA[
<stream:error>
<undefined-condition xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
@ -693,6 +693,17 @@
</xs:restriction>
</xs:simpleType>
<xs:element name='handled-count-too-high'>
<xs:complexType>
<xs:attribute name='send-count'
type='xs:unsignedInt'
use='optional'/>
<xs:attribute name='h'
type='xs:unsignedInt'
use='optional'/>
</xs:complexType>
</xs:element>
</xs:schema>
]]></code>
</section1>