Skip to content

Commit

Permalink
mod_client_state: Throttle stanzas by default
Browse files Browse the repository at this point in the history
Enable the mod_client_state options "drop_chat_states" and
"queue_presence" by default.  These features are now well-tested in
practice.
  • Loading branch information
weiss committed Aug 4, 2015
1 parent 13f7be6 commit c0497d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions ejabberd.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down
4 changes: 2 additions & 2 deletions src/mod_client_state.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit c0497d4

Please sign in to comment.