aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make decide room better handle rooms that were just hibernatedPaweł Chmielowski2020-12-011-3/+14
|
* Handle unix sockets in misc:ip_to_listPaweł Chmielowski2020-12-011-0/+2
|
* Trigger user_send_packet when send_stanza API is called (#3431)Badlop2020-12-011-1/+5
|
* Merge pull request #3429 from mtdcr/systemd-foregroundbadlop2020-11-251-2/+1
|\ | | | | Let systemd start ejabberd in foreground
| * Let systemd start ejabberd in foregroundAndreas Oberritter2020-11-191-2/+1
|/ | | | | | | | | | | | | | | | Daemons started by systemd shouldn't fork into the background if possible, because if multiple forked processes exist, systemd has a hard time determining the main process ID. In a memory constrained environment, the OOM killer may cause ejabberd to exit without any trace. Because epmd keeps running, systemd wouldn't notice the error condition, and as a result it won't restart the server. With ejabberd running in foreground, systemd is able to obtain the correct exit code (137 in this case, instead of 0) and schedules a restart. The administrator can then see what happend by looking at systemctl status ejabberd.
* Provide name when pushing new roster item in shared roster group (#3427)Badlop2020-11-191-4/+8
|
* Fix room_unused_destroy on hibernated roomsPaweł Chmielowski2020-11-191-5/+12
|
* Update muc_room just_created timestamp when message is receivedPaweł Chmielowski2020-11-182-27/+15
| | | | | | This together with last history message is used by room_unused_* command to determine for how long room was not used, this change allow us to skip checking history, and works even when history is disabled.
* We don't use persistent field in decide_roomPaweł Chmielowski2020-11-181-11/+10
|
* Fix logic that determines room age when history_size=0Paweł Chmielowski2020-11-181-2/+1
|
* Merge pull request #3402 from nosnilmot/docker-fixesbadlop2020-11-174-945/+15
|\ | | | | Fix docker DB initialization
| * Fix docker DB initializationStu Tomlinson2020-09-254-945/+15
| | | | | | | | | | | | | | | | | | The docker local copies of DB initialization scripts were out of sync with the master copies. Instead of updating local copies, adjust docker compose to reference master copies directly. Also change docker config to use docker volumes instead of mounted directories for all DB data.
* | Allow room_unused_list/destroy work on hibernated roomsPaweł Chmielowski2020-11-162-19/+56
| | | | | | | | | | | | This required adding hibernation time to data stored for room to be able determine how old was a room, rooms that aren't stored with that information will use node start time as timestamp for that.
* | Merge pull request #3399 from nosnilmot/redis3-configure_depsbadlop2020-11-131-2/+1
|\ \ | | | | | | Improve rebar3 configure-deps plugin output
| * | Improve rebar3 configure-deps plugin outputStu Tomlinson2020-09-231-2/+1
| |/ | | | | | | | | Switch to using rebar_utils:sh/2 instead of os:cmd/1 to spawn ./configure so that output can be monitored and errors detected
* | Merge pull request #3395 from nosnilmot/rebar3badlop2020-11-135-43/+78
|\ \ | | | | | | rebar3 support for main build process
| * | Add sql dir to extra_src_dirsStu Tomlinson2020-09-251-0/+1
| | | | | | | | | | | | | | | When running ct under rebar3, add sql dir to extra_src_dirs so sql scripts are available to run clear_sql_tables
| * | Miscellaneous rebar3 fixesStu Tomlinson2020-09-234-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Correct Makefile clean targets Fix a few more include() -> include_lib() for depedency includes Use project_app_dirs to reference elixir app from rebar3 (lib_dirs is no longer supported)
| * | rebar3 support for main build processStu Tomlinson2020-09-213-32/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for building, and installing, ejabberd using rebar3 A --with-rebar=/path/to/rebar3 option is added to configure to specify which rebar to use rebar2 compatibility is maintained, and the bundled rebar2 is still used by default
* | | Update dependenciesBadlop2020-11-111-11/+11
| | |
* | | Don't do double utf-8 conversion on translated strings in str:formatPaweł Chmielowski2020-11-097-18/+24
| | | | | | | | | | | | | | | | | | | | | This caused garbled text in some places in webadmin when using language that used characters > 128. Thanks to chengshq for noticing this and providing preliminary patch.
* | | Document sql_odbc_driver option (copied from docs site)Badlop2020-11-061-0/+7
| | |
* | | Document outgoing_s2s_ipv4_address and ipv6 options (#3396)Badlop2020-11-061-0/+12
| | |
* | | Apply cosmetic changes to outgoing s2s IP optionsHolger Weiss2020-11-042-11/+13
| | |
* | | Merge remote-tracking branch 'processone/pr/3396'Holger Weiss2020-11-043-1/+39
|\ \ \ | | | | | | | | | | | | | | | | * processone/pr/3396: Add outbound s2s out interface (ipv4/ipv6)
| * | | Add outbound s2s out interface (ipv4/ipv6)Daniel Kenzelmann2020-09-213-1/+39
| |/ / | | | | | | | | | | | | | | | Adding options taking IPs as string: outgoing_s2s_ipv4_address: "1.2.3.4" outgoing_s2s_ipv6_address: "2000:1:1:1::1"
* | | Make sure that jid used as base in mam xml_compress is barePaweł Chmielowski2020-11-041-1/+1
| | |
* | | mod_push: Fix log message argumentHolger Weiss2020-11-041-1/+1
| | |
* | | mod_push: Fix API call return type on errorHolger Weiss2020-11-041-2/+2
| | | | | | | | | | | | A call that yields a 'rescode' isn't supposed to return an error tuple.
* | | mod_push: Support cache config changes on reloadHolger Weiss2020-11-041-1/+3
| | |
* | | Change split character in PROXY_USER from \x04 to :Paweł Chmielowski2020-10-291-1/+1
| | | | | | | | | | | | This is clearly typo
* | | Update eimpPaweł Chmielowski2020-10-261-1/+1
| | | | | | | | | | | | This makes eimp compile correctly agains headers from png12
* | | Update eimpPaweł Chmielowski2020-10-261-1/+1
| | |
* | | Don't use same value in cache for user don't exist and wrong passwordPaweł Chmielowski2020-10-221-9/+19
| | | | | | | | | | | | | | | | | | By doing this check_password that returned info about mismatched password caused user_exists checks performed after that to return wrongly that account doesn't exist.
* | | Add better error reporting to mod_muc_admin commandsPaweł Chmielowski2020-10-201-80/+117
| | |
* | | Document that send_direct_invitation is asynchronousBadlop2020-10-161-1/+5
| | |
* | | Support for MAM Flipped Pages (#3398)Badlop2020-10-152-5/+9
| | |
* | | Store room options in create_room_with_opts only if we will start roomPaweł Chmielowski2020-10-151-7/+7
| | | | | | | | | | | | | | | Previously we could overwrite existing room options and then later return error because room was already started.
* | | send_direct_invitation command is now asynchronousJerome Sautret2020-10-151-1/+0
| | | | | | | | | | | | EJABS-3593
* | | Make websocket send put back pressure on c2s processPaweł Chmielowski2020-10-132-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously c2s was free to generate data to send in unlimited manner, and just generate queue of messages that are waiting to be send. This could lead to hitting timouts in stream management ack handling (if c2s generate lot of packages, after which <r> request was sent, client could even not receive it before timeout was triggered on server waiting for corresponding <a>). This changes makes c2s process wait for data being sent to tcp socket associated with websocket connection, which should help with this problem.
* | | Make mod_muc_admin command work correctly with hibernated roomsPaweł Chmielowski2020-10-132-19/+32
| | | | | | | | | | | | | | | This should first try to unhibernate rooms before trying to send messages to processes handling them.
* | | Added sql_odbc_driver option for mssql dbJerome Sautret2020-10-084-11/+23
| | | | | | | | | | | | Add an option to choose the ODBC driver when sql_type is set to mssql
* | | ejabberd_stun: Rename Logger filterHolger Weiss2020-10-011-2/+2
| | | | | | | | | | | | | | | | | | | | | Don't overwrite the Logger filter added by the 'stun' application (which appends metadata to STUN/TURN log messages). Closes processone/stun#31.
* | | mod_register: Allow for account-removal-only setupHolger Weiss2020-09-291-11/+10
| |/ |/| | | | | | | | | | | | | Since commit de91618070473fdf2ecff30c722f0770acd1a912, it was no longer possible to configure mod_register so that only account removal (i.e., no registration) is permitted. Revert to the previous behavior which allows admins to freely configure account registration and removal via separate access rules.
* | log_rotate_date and log_rate_limit are deprecated since e4a8afb (#3382)Badlop2020-09-222-5/+1
| |
* | Make roster subscriptions work better with invalid roster state in dbPaweł Chmielowski2020-09-221-2/+51
|/ | | | | | Sometimes we can observer combinations of subscription/ask that shouldn't happen normally, but can be generated with api calls, let's try to handle that gracefully instead of crashing.
* rebar3 plugin to support configure-deps command (#3392)Stu Tomlinson2020-09-215-0/+75
| | | | | | | | | | | * rebar3 plugin to support configure-deps command To allow running configure on dependencies prior to compilation, add a rebar3 plugin to support the 'configure-deps' command introduced for rebar2 in a7639fd4 * Fix compatibility with OTP < 23 binary_to_atom/1 is new to OTP 23
* Add 'gitonly_deps' list to rebar config/script (#3391)Stu Tomlinson2020-09-212-5/+12
| | | | | | | Add list of dependencies that should only be built from git, to support building with rebar3 where deps do not have hex packages (or where the package versions do not directly map to git tags). This is required for elixir and luerl deps.
* Use os time instead of system time in values returned by mod_timePaweł Chmielowski2020-09-151-1/+1
| | | | | This timer should correctly work with time warps, and should fix issue #3390
* Refer to the XEP for standard names (processone/docs.ejabberd.im#97)Badlop2020-09-111-1/+2
|