aboutsummaryrefslogtreecommitdiff
path: root/src/mod_ping.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression on stop_ping in clustering context (thanks to fdie)(#3817)Badlop2022-05-231-1/+1
|
* Delete ping timer if resource is gone after the ping has been sentJérôme Sautret2022-04-281-0/+8
|
* Don't send ping if resource is goneJérôme Sautret2022-04-261-29/+37
|
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Update documentation to match the implemented options values (#3675)Badlop2021-09-141-1/+1
|
* Send ping from server, not bare user JID (#3658)Badlop2021-08-271-1/+1
|
* Use specific syntax so modules and top-level will be linksBadlop2021-08-231-2/+2
| | | | | | If we use _`whatever`_ here in ejabberd man pages, it is converted to *`whatever`* in markdown, and docs.ejabberd.im/Makefile converts to the proper links
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* If new session Pid exists when sm_remove is called, then keep Ping (#3260)Badlop2020-05-111-1/+8
|
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-1/+54
| | | | | | | Several documentation callbacks (doc/0 and mod_doc/0) are implemented and `ejabberdctl man` command is added to generate a man page. Note that the command requires a2x to be installed (which is a part of asciidoc package).
* Fix the regression introduced in dd57950Evgeny Khramtsov2019-09-041-2/+0
| | | | Fixes #3010
* Don't retain module option on gen_mod supervisorEvgeny Khramtsov2019-08-041-1/+2
| | | | | | When module's options were updated (e.g. by reloading ejabberd.yml) and, later, the module's process crashed, gen_mod supervisor restarts the process with outdated options. This is now fixed.
* Use econf:timeout() instead of econf:pos_int() wherever appropriateEvgeny Khramtsov2019-07-171-6/+5
|
* Process unexpected messages uniformlyEvgeny Khramtsov2019-07-121-3/+6
|
* Avoid using broad map() type wherever possibleEvgeny Khramtsov2019-06-271-6/+8
|
* Make logging messages more consistentEvgeny Khramtsov2019-06-241-1/+1
|
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-1/+3
| | | | | | | | | | | | | Now every such string MUST be encapsulated into ?T() macro. The macro itself is defined in include/translate.hrl. Example: -module(foo). -export([bar/1]). -include("translate.hrl"). bar(Lang) -> translate:translate(Lang, ?T("baz")).
* Use new configuration validatorEvgeny Khramtsov2019-06-141-12/+8
|
* Delete the ping timer only when timeout_action=kill (#2820)Badlop2019-03-131-4/+5
|
* Fix ping IQ reply/timeout processing ("mod_ping" regression since 17.x that ↵Frank Diebolt2019-01-291-20/+21
| | | | may cause resources leakage)
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Don't stop sending pings when receiving timeout for timeout_action=nonePaweł Chmielowski2018-09-041-13/+14
|
* Move cancel_timer/1 function into 'misc' moduleHolger Weiss2018-07-171-10/+2
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-1/+0
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Remove 'iqdisc' optionEvgeniy Khramtsov2018-02-111-14/+7
| | | | | | | | | | | | | | | | | Since we got rid of all bottle-neck processes and we have a connection pool for every database, the option is no longer needed and in fact is detrimental: in practice what you get is just a bunch of overloaded processes in the IQ handlers pool no matter how much you increase the `iqdisc` value. Given that there are close to zero operators understanding the meaning of the option and, hence, not using it all, it's not simply deprecated but completely removed. The commit also deprecates the following functions: - gen_iq_handler:add_iq_handler/6 - gen_iq_handler:handle/5 - gen_iq_handler:iqdisc/1
* Fix compilation ordering in mix by s/-behavior/-behaviour/Paweł Chmielowski2018-01-311-2/+2
|
* Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-19/+22
| | | | | | | The callback is supposed to provide known options and their default values, as long as the documentation. Passing default values into get_mod functions is now deprecated: all defaults should be provided by the Mod:mod_options/1 callback.
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Use new API for IQ routingEvgeniy Khramtsov2017-11-101-8/+7
| | | | | Functions ejabberd_local:route_iq/2,3 are now depecated: ejabberd_router:route_iq/2,3,4 should be used instead.
* Introduce 'iqdisc' global optionEvgeniy Khramtsov2017-05-041-2/+2
|
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-19/+7
| | | | | | | | | | | | | | The changes are very similar to those from previous commit: * Now there is no need to pass validating function in gen_mod:get_opt() and gen_mod:get_module_opt() functions, because the modules' configuration keeps already validated values. * New functions gen_mod:get_opt/2 and gen_mod:get_module_opt/3 are introduced. * Functions gen_mod:get_opt/4 and get_module_opt/5 are deprecated. If the functions are still called, the "function" argument is simply ignored. * Validating callback Mod:listen_opt_type/1 is introduced to validate listening options at startup.
* Improve ejabberd_c2s:close()Evgeniy Khramtsov2017-04-151-1/+1
|
* Don't log warning on successful ping replyEvgeniy Khramtsov2017-04-041-0/+2
|
* Fix c2s connection close on demandEvgeniy Khramtsov2017-04-041-1/+1
| | | | Fixes #1652
* Remove unused macroEvgeniy Khramtsov2017-02-221-2/+0
|
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-44/+78
|
* Change routing APIEvgeniy Khramtsov2017-02-161-3/+3
| | | | | | | | | | | Now 'From' and 'To' arguments must be omitted in functions and structures related to routing. The commit deprecates the following functions: ejabberd_router:route/3 in favor of ejabberd_router:route/1 ejabberd_router:route_error/4 in favor of ejabberd_router:route_error/2 ejabberd_local:route_iq/4 in favor of ejabberd_local:route_iq/2 ejabberd_local:route_iq/5 in favor of ejabberd_local:route_iq/3 The format of {route, From, To, Packet} is changed in favor of {route, Packet}
* Attach modules to gen_mod's supervisorEvgeniy Khramtsov2017-02-141-14/+3
|
* Improve modules start/stop proceduresEvgeniy Khramtsov2017-02-141-2/+4
|
* Make mod_disco handle features of mod_pingEvgeniy Khramtsov2017-01-231-16/+1
|
* Merge branch 'new_stream'Evgeniy Khramtsov2017-01-201-8/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/cyrsasl.erl src/ejabberd_c2s.erl src/ejabberd_cluster.erl src/ejabberd_frontend_socket.erl src/ejabberd_node_groups.erl src/ejabberd_router.erl src/mod_bosh.erl src/mod_ip_blacklist.erl src/mod_muc_mnesia.erl src/mod_offline.erl src/mod_proxy65_sm.erl
| * Adopt remaining code to support new hooksEvgeniy Khramtsov2017-01-091-8/+21
| |
* | Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|/
* Improve some type specsEvgeniy Khramtsov2016-08-091-2/+2
|
* Initial version based on XML generatorEvgeniy Khramtsov2016-07-181-17/+18
|
* Get rid of warningsEvgeniy Khramtsov2016-07-071-1/+4
|
* Merge pull request #931 from cclam0827/dev/mod_pingbadlop2016-04-221-11/+11
|\ | | | | change mod_ping Timers using maps instead of dict
| * change mod_ping Timers using maps instead of dictRichard2016-01-291-11/+11
| |