mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Adding ping_ack_timeout in mod_opt_type configuration
Avoid the error output ``` 2015-11-18 12:02:40.297 [error] <0.37.0>@gen_mod:validate_opts:250 unknown option 'ping_ack_timeout' for module 'mod_ping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action' 2015-11-18 12:02:40.334 [error] <0.37.0>@gen_mod:validate_opts:250 unknown option 'ping_ack_timeout' for module 'mod_ping' will be likely ignored, available options are: 'iqdisc', 'ping_interval', 'send_pings', 'timeout_action' ``` In setting mod_opt_type default, ping_ack_timeout parameter was added.
This commit is contained in:
parent
2f9f4e6938
commit
49a8de7c56
@ -255,6 +255,8 @@ cancel_timer(TRef) ->
|
||||
mod_opt_type(iqdisc) -> fun gen_iq_handler:check_type/1;
|
||||
mod_opt_type(ping_interval) ->
|
||||
fun (I) when is_integer(I), I > 0 -> I end;
|
||||
mod_opt_type(ping_ack_timeout) ->
|
||||
fun (I) when is_integer(I), I > 0 -> I end;
|
||||
mod_opt_type(send_pings) ->
|
||||
fun (B) when is_boolean(B) -> B end;
|
||||
mod_opt_type(timeout_action) ->
|
||||
@ -262,4 +264,4 @@ mod_opt_type(timeout_action) ->
|
||||
(kill) -> kill
|
||||
end;
|
||||
mod_opt_type(_) ->
|
||||
[iqdisc, ping_interval, send_pings, timeout_action].
|
||||
[iqdisc, ping_interval, ping_ack_timeout, send_pings, timeout_action].
|
||||
|
Loading…
Reference in New Issue
Block a user