diff --git a/xep-0198.xml b/xep-0198.xml index 8492c2b4..7dd8f2c9 100644 --- a/xep-0198.xml +++ b/xep-0198.xml @@ -28,6 +28,18 @@ &fabio; &dcridland; &mwild; + + + 1.4rc1 + 2015-07-27 + dc + +
    +
  • Expressed how to handle duplicate enable requests.
  • +
  • Noted the use of delay stamping in redelivery/offline messaging by servers.
  • +
+
+
1.3 2011-06-29 @@ -224,6 +236,8 @@ S: ]]> +

Note that a client SHALL only make at most one attempt to enable stream management. If a server receives a second <enable/> element it SHOULD respond with a stream error, thus terminating the client connection + .

@@ -278,7 +292,7 @@ S:

When a party receives an <a/> element, it SHOULD keep a record of the 'h' value returned as the sequence number of the last handled outbound stanza for the current stream (and discard the previous value).

If a stream ends and it is not resumed within the time specified in the original <enabled/> element, the sequence number and any associated state MAY be discarded by both parties. Before the session state is discarded, implementations SHOULD take alternative action regarding any unhandled stanzas (i.e., stanzas sent after the most recent 'h' value received):

    -
  • A server SHOULD treat unacknowledged stanzas in the same way that it would treat a stanza sent to an unavailable resource, by either returning an error to the sender or committing the stanza to offline storage.
  • +
  • A server SHOULD treat unacknowledged stanzas in the same way that it would treat a stanza sent to an unavailable resource, by either returning an error to the sender, delivery to an alternate resource, or committing the stanza to offline storage. (Note that servers SHOULD add a delay element with the original (failed) delivery timestamp, as per &xep0203;).
  • A user-oriented client SHOULD try to silently resend the stanzas upon reconnection or inform the user of the failure via appropriate user-interface elements.

Because unacknowledged stanzas might have been received by the other party, resending them might result in duplicates; there is no way to prevent such a result in this protocol, although use of the XMPP 'id' attribute on all stanzas can at least assist the intended recipients in weeding out duplicate stanzas.