]> granicus.if.org Git - ejabberd/commitdiff
mod_client_state: Throttle stanzas by default
authorHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 4 Aug 2015 22:05:11 +0000 (00:05 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 4 Aug 2015 22:05:11 +0000 (00:05 +0200)
Enable the mod_client_state options "drop_chat_states" and
"queue_presence" by default.  These features are now well-tested in
practice.

ejabberd.yml.example
src/mod_client_state.erl

index c57ef4657d41c03d603ae29826ad0d8df39f070f..b4278eed4ea50f8cb5f9aad4a3b19bd03f52ddad 100644 (file)
@@ -577,9 +577,7 @@ modules:
   mod_blocking: {} # requires mod_privacy
   mod_caps: {}
   mod_carboncopy: {}
-  mod_client_state:
-    drop_chat_states: true
-    queue_presence: false
+  mod_client_state: {}
   mod_configure: {} # requires mod_adhoc
   mod_disco: {}
   ## mod_echo: {}
index bb0d962ff05168ee1837dea1c517c50fa7a6f99f..eb40db1095ff14498ac69d3426de88619f29298f 100644 (file)
@@ -42,11 +42,11 @@ start(Host, Opts) ->
     QueuePresence = gen_mod:get_opt(queue_presence, Opts,
                                    fun(true) -> true;
                                       (false) -> false
-                                   end, false),
+                                   end, true),
     DropChatStates = gen_mod:get_opt(drop_chat_states, Opts,
                                     fun(true) -> true;
                                        (false) -> false
-                                    end, false),
+                                    end, true),
     if QueuePresence; DropChatStates ->
           ejabberd_hooks:add(c2s_post_auth_features, Host, ?MODULE,
                              add_stream_feature, 50),