From 7d594086c3601c3281473b4ca54714b714027019 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 12 Mar 2014 23:34:14 +0100 Subject: 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. --- include/ns.hrl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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">>). -- cgit v1.2.3