]> granicus.if.org Git - ejabberd/commitdiff
Update http_bind module to latest XEP-0124 and XEP-0206
authorJanusz Dziemidowicz <rraptorr@nails.eu.org>
Wed, 14 Sep 2011 21:36:30 +0000 (23:36 +0200)
committerBadlop <badlop@process-one.net>
Thu, 15 Sep 2011 23:17:23 +0000 (01:17 +0200)
Only cosmetic changes, version bumped to 1.10 and added
'restartlogic' attribute.

src/web/ejabberd_http_bind.erl

index c3771f46cd10fd0c983fa6b6fe047aba7cf58f14..7f27f1ad7ecbab7355329e250d5ab3d7d3188978 100644 (file)
@@ -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,