diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-03-12 23:34:14 +0100 |
---|---|---|
committer | Holger Weiß <holger@zedat.fu-berlin.de> | 2014-03-12 23:34:14 +0100 |
commit | 7d594086c3601c3281473b4ca54714b714027019 (patch) | |
tree | 2b2cd4d2d05a6a95430f1d55ee20e0b2b3397101 /include | |
parent | Provide header with latin-1 encoding in translations to work with Erlang/OTP R17 (diff) |
Add initial XEP-0198 support (EJAB-532)
Implement partial support for XEP-0198: Stream Management. After
successful negotiation of this feature, the server requests an ACK for
each stanza transmitted to the client and responds to ACK requests
issued by the client. On session termination, the server re-routes any
unacknowledged stanzas. The length of the pending queue can be limited
by setting the "max_ack_queue" option to some integer value (default:
500). XEP-0198 support can be disabled entirely by setting the
"stream_management" option to false (default: true).
So far, stream management is implemented only for c2s connections, and
the optional stream resumption feature also described in XEP-0198 is not
(yet) supported.
This addition was originally based on a patch provided by Magnus Henoch
and updated by Grzegorz Grasza. Their code implements an early draft of
XEP-0198 for some previous version of ejabberd. It has since been
rewritten almost entirely.
Diffstat (limited to 'include')
-rw-r--r-- | include/ns.hrl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ns.hrl b/include/ns.hrl index 6d041a47..2cf218c7 100644 --- a/include/ns.hrl +++ b/include/ns.hrl @@ -144,3 +144,5 @@ -define(NS_MEDIA, <<"urn:xmpp:media-element">>). -define(NS_BOB, <<"urn:xmpp:bob">>). -define(NS_PING, <<"urn:xmpp:ping">>). +-define(NS_STREAM_MGMT_2, <<"urn:xmpp:sm:2">>). +-define(NS_STREAM_MGMT_3, <<"urn:xmpp:sm:3">>). |