aboutsummaryrefslogtreecommitdiff
path: root/src/gen_iq_handler.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-02-11Update copyright year to 2022Badlop1-1/+1
2021-01-27Update newest copyright year to 2021 (#3464)Badlop1-1/+1
2020-09-03Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson1-1/+1
2020-01-28Update copyright to 2020 (#3149)Badlop1-1/+1
2019-09-23Correctly handle unicode in log messagesEvgeny Khramtsov1-1/+1
2019-07-07Improve formatting of exceptionsEvgeny Khramtsov1-3/+4
2019-06-26Use correct stacktrace in logging macrosEvgeny Khramtsov1-1/+2
By calling erlang:get_stacktrace() inside a lager function we obtain actually a stacktrace of the lager function, not the one we got during exception. This is not a problem for newest Erlang versions though.
2019-06-24Make logging messages more consistentEvgeny Khramtsov1-1/+1
2019-06-22Improve extraction of translated stringsEvgeny Khramtsov1-2/+2
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")).
2019-06-14Use new configuration validatorEvgeny Khramtsov1-23/+1
2019-01-08Update copyright to 2019 (#2756)Badlop1-1/+1
2018-12-13Add code for handling deprecations of get_stacktrace()Paweł Chmielowski1-3/+3
2018-09-09Fix some dialyzer warningsEvgeny Khramtsov1-2/+1
2018-09-01Get stacktrace out of lager contextEvgeniy Khramtsov1-1/+2
Calling erlang:get_stacktrace() inside lager functions produces stacktraces of the logging function itself, not the function which has failed.
2018-06-20Update ejabberd.potEvgeniy Khramtsov1-2/+3
2018-06-14Improve type specEvgeniy Khramtsov1-1/+1
2018-06-14Get rid of all calls to jlib.erl moduleEvgeniy Khramtsov1-25/+5
2018-06-14Get rid of ejabberd.hrl headerEvgeniy Khramtsov1-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
2018-05-09Reduce IQ handler code copyingEvgeniy Khramtsov1-11/+59
2018-02-11Remove 'iqdisc' optionEvgeniy Khramtsov1-118/+26
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
2018-01-05Update copyright datesEvgeniy Khramtsov1-1/+1
2017-11-14Use xmpp:io_format_error/1 wherever possibleEvgeniy Khramtsov1-1/+1
2017-05-18The default 'iqdisc' is now 'no_queue'Evgeniy Khramtsov1-1/+1
2017-05-08Add type specs for Module:opt_type/1Evgeniy Khramtsov1-0/+2
2017-05-04Introduce 'iqdisc' global optionEvgeniy Khramtsov1-1/+9
2017-02-22Reload modules when reloading configuration fileEvgeniy Khramtsov1-1/+1
2017-02-16Change routing APIEvgeniy Khramtsov1-17/+20
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}
2017-02-14Only use GEN_SERVER macro where appropriateEvgeniy Khramtsov1-4/+7
2017-02-13Check result of gen_mod:start/2 callback (#1534)Evgeniy Khramtsov1-2/+2
2017-01-02Update copyright date automatically (#1442)Badlop1-1/+1
2016-11-25Use ejabberd_router:route_error/4 wherever possibleEvgeniy Khramtsov1-1/+1
2016-11-13Add more control for decoding IQ payloadsEvgeniy Khramtsov1-5/+3
2016-10-17Add more MUC testsEvgeniy Khramtsov1-1/+1
2016-09-24Improve namespace handlingEvgeniy Khramtsov1-2/+2
2016-08-09Improve some type specsEvgeniy Khramtsov1-0/+1
2016-07-18Initial version based on XML generatorEvgeniy Khramtsov1-9/+46
2016-01-13Update copyright to 2016 (#901)Badlop1-1/+1
2015-12-04Remove now() - part 1Paweł Chmielowski1-2/+2
2015-10-07cosmetic cleanupChristophe Romain1-73/+42
2015-09-16Comment unused type, unused termQuan Zhuo1-2/+2
2015-01-08Update copyright dates to 2015 (EJAB-1733)Badlop1-1/+1
2014-03-13Update copyright dates to 2014 (EJAB-1679)Badlop1-1/+1
2014-02-22Update FSF addressJamie Nguyen1-4/+3
2013-08-21Change configuration file format to YAMLEvgeniy Khramtsov1-4/+14
2013-07-08gen_iq_handler:check_type was missingAlexey Shchepin1-1/+12
2013-06-13Switch to rebar build toolEvgeniy Khramtsov1-0/+2
Use dynamic Rebar configuration Make iconv dependency optional Disable transient_supervisors compile option Add hipe compilation support Only compile ibrowse and lhttpc when needed Make it possible to generate an OTP application release Add --enable-debug compile option Add --enable-all compiler option Add --enable-tools configure option Add --with-erlang configure option. Add --enable-erlang-version-check configure option. Add lager support Improve the test suite
2013-03-29Fix several refactoring related bugsEvgeniy Khramtsov1-1/+1
2013-03-14Accumulated patch to binarize and indent codeBadlop1-78/+68
2013-01-24Update copyright datesAlexey Shchepin1-1/+1
2012-02-23Update copyright datesAlexey Shchepin1-1/+1