Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanusz Dziemidowicz <rraptorr@nails.eu.org>2011-09-15 01:36:30 +0400
committerBadlop <badlop@process-one.net>2011-09-16 03:17:23 +0400
commit1dc1795f2a0c2cde092b3e8fd0a1e3b6599e7d84 (patch)
treeaa431084b5f4ce00b9f33155a85a9015e17ff37c
parenta435c4b1235846c21e815809c911fc2bd792f365 (diff)
Update http_bind module to latest XEP-0124 and XEP-0206
Only cosmetic changes, version bumped to 1.10 and added 'restartlogic' attribute.
-rw-r--r--src/web/ejabberd_http_bind.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl
index c3771f46c..7f27f1ad7 100644
--- a/src/web/ejabberd_http_bind.erl
+++ b/src/web/ejabberd_http_bind.erl
@@ -95,7 +95,7 @@
-define(FSMOPTS, []).
-endif.
--define(BOSH_VERSION_b, <<"1.8">>).
+-define(BOSH_VERSION_b, <<"1.10">>).
-define(MAX_REQUESTS, 2). % number of simultaneous requests
-define(MIN_POLLING, 2000000). % don't poll faster than that or we will
@@ -1049,7 +1049,8 @@ prepare_outpacket_response(#http_bind{id=Sid, wait=Wait,
BOSH_attribs =
[#xmlattr{name = <<"authid">>, value = list_to_binary(AuthID)},
#xmlattr{name = <<"xmlns:stream">>, value = ?NS_XMPP_b}] ++
- [#xmlattr{name = <<"version">>, ns = ?NS_BOSH_s, value = list_to_binary(Version)}],
+ [#xmlattr{name = <<"version">>, ns = ?NS_BOSH_s, value = list_to_binary(Version)},
+ #xmlattr{name = <<"restartlogic">>, ns = ?NS_BOSH_s, value = <<"true">>}],
MaxInactivity = get_max_inactivity(To, ?MAX_INACTIVITY),
MaxPause = get_max_pause(To),
{200, ?HEADER,