diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-10 15:12:43 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-03-10 15:12:43 +0300 |
commit | 02064ae12afe9ebbe92196575b427436398fd680 (patch) | |
tree | e9262548102b4096020a9c50b7c230856b6cc7c8 /src/mod_bosh.erl | |
parent | Report more TLS errors (diff) |
Add support for file-based queues
It's now possible to use files as internal packet queues.
The following options are introduced:
* queue_type: the option can be set to `ram` (default) or `file`.
The option can be set per virtual host.
* queue_dir: path to the directory where queues will be allocated.
The default is 'queue' directory inside Mnesia directory.
This is a global option and cannot be set per virtual host.
Diffstat (limited to 'src/mod_bosh.erl')
-rw-r--r-- | src/mod_bosh.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mod_bosh.erl b/src/mod_bosh.erl index abe3c2f1..57c81953 100644 --- a/src/mod_bosh.erl +++ b/src/mod_bosh.erl @@ -158,9 +158,11 @@ mod_opt_type(prebind) -> fun (B) when is_boolean(B) -> B end; mod_opt_type(ram_db_type) -> fun(T) -> ejabberd_config:v_db(?MODULE, T) end; +mod_opt_type(queue_type) -> + fun(ram) -> ram; (file) -> file end; mod_opt_type(_) -> - [json, max_concat, max_inactivity, max_pause, prebind, ram_db_type]. - + [json, max_concat, max_inactivity, max_pause, prebind, ram_db_type, + queue_type]. %%%---------------------------------------------------------------------- %%% Help Web Page |