comparison mod_muc_limits/README.markdown @ 5601:6680a1f53353

mod_muc_limits: Reduce cost of multi-line messages, make configurable Typing a 5-line message preceded by a few chat states would have hit the default limit.
author Kim Alvefur <zash@zash.se>
date Sat, 15 Jul 2023 09:09:41 +0200
parents d52cc18f0aa8
children bae2f4830a93
comparison
equal deleted inserted replaced
5600:c799b460f9f0 5601:6680a1f53353
33 Component "conference.example.com" "muc" 33 Component "conference.example.com" "muc"
34 modules_enabled = { "muc_limits" } 34 modules_enabled = { "muc_limits" }
35 35
36 You can define (globally or per-MUC component) the following options: 36 You can define (globally or per-MUC component) the following options:
37 37
38 Name Default value Description 38 Name Default value Description
39 --------------------- --------------- -------------------------------------------------- 39 --------------------------- --------------- ----------------------------------------------------------
40 muc_event_rate 0.5 The maximum number of events per second. 40 muc_event_rate 0.5 The maximum number of events per second.
41 muc_burst_factor 6 Allow temporary bursts of this multiple. 41 muc_burst_factor 6 Allow temporary bursts of this multiple.
42 muc_max_nick_length 23 The maximum allowed length of user nicknames 42 muc_max_nick_length 23 The maximum allowed length of user nicknames
43 muc_max_char_count 5664 The maximum allowed number of bytes in a message 43 muc_max_char_count 5664 The maximum allowed number of bytes in a message
44 muc_max_line_count 23 The maximum allowed number of lines in a message 44 muc_max_line_count 23 The maximum allowed number of lines in a message
45 muc_limit_base_cost 1 Base cost of sending a stanza
46 muc_line_count_multiplier 0.1 Additional cost of each newline in the body of a message
45 47
46 For more understanding of how these values are used, see the algorithm 48 For more understanding of how these values are used, see the algorithm
47 section below. 49 section below.
48 50
49 Algorithm 51 Algorithm