aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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.
* 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
|
* Allow for filtering outgoing s2s stanzas (#3381)Holger Weiß2020-09-072-4/+8
| | | | Let 's2s_send_packet' hook callbacks filter stanzas, analogous to the 's2s_receive_packet' hook.
* Revert "Run user_receive_packet in send_message so MAM stores also incoming ↵Badlop2020-09-041-7/+3
| | | | | | (#3377)" This reverts commit 43f813d6f88ae54f04fbc6b8d97d338f5f8446e9.
* Run user_receive_packet in send_message so MAM stores also incoming (#3377)Badlop2020-09-031-3/+7
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-03117-120/+120
|
* Provide room disco info identity name only when title was set (#3370)Badlop2020-08-281-1/+1
|
* New hook to run when a room process is started (#3353)Badlop2020-08-281-0/+2
|
* Show nick also in oneself list of subscriptions (#3206)Badlop2020-08-265-16/+16
|
* Always show MucSub subscribers nicks (#3206)(thanks to Snoopcatt)Badlop2020-08-261-1/+1
|
* Add link to docs about default and new database schemasBadlop2020-08-261-2/+3
|
* mod_pubsub: Fix typo in 'hosts' documentationHolger Weiss2020-08-251-2/+2
| | | | Thanks to Melvin Keskin for spotting this.
* Mark dangerous buttons with CSS (#3363)Badlop2020-08-244-14/+23
|
* Update opt files with "make options"Badlop2020-08-212-18/+18
|
* Fix vCard search by User when using MnesiaBadlop2020-08-201-1/+1
| | | | | Reported in https://stackoverflow.com/questions/63499864/how-to-search-registered-user-on-ejabberd-server-from-client-side-using-smack-li
* mod_pubsub: Remove 'dag' node plugin documentationHolger Weiss2020-08-181-5/+1
| | | | | Commit c9d3beb9ebbd7a76a74e3e9c22ea62ec21e64a6a removed the 'dag' node/nodetree plugins.
* Fix to allow vhost admins to view WebAdmin menus (#3355)Badlop2020-08-101-19/+8
|
* Don't forget not-persistent rooms in load_permanent_roomsPaweł Chmielowski2020-08-061-12/+7
| | | | | | | | | Only non-persistent rooms that we are storing are those that were hibernated but also have mucsub subscribers in them. I don't think it makes sense to destroy those rooms on restart/reload if we didn't destroy them in first place when last member did leave room, let just handle those rooms like they are persistent, and kill them only when all user unsubscribe from them or they are destroyed from api.
* Improve explanations of cafile optionsBadlop2020-08-031-8/+15
|
* Add support for unix socket in listenersPaweł Chmielowski2020-07-281-11/+35
| | | | To use it you just need to set port value to "unix:/path/to/socket"
* Don't log http errors when socket get closed after processing one requestPaweł Chmielowski2020-07-281-0/+3
|
* In fact misc:try_url/1 is not used anymoreBadlop2020-07-151-25/+1
|
* Fix try_url/1 parsing of uri_parse result format, reported by DialyzerBadlop2020-07-141-8/+9
|
* mod_stun_disco: Fix function specificationHolger Weiss2020-07-111-1/+1
|
* Parse also ServerHost in create_room* commands (#3326)Badlop2020-07-101-1/+2
|
* Fix crash when creating new MUC log file in non-ASCII lang (#3324)Badlop2020-07-101-1/+1
|
* Use the same leading sentence than other sectionsBadlop2020-07-061-1/+1
|
* ejabberd_stun: Filter info/debug messagesHolger Weiss2020-07-011-0/+34
| | | | | Update 'stun' dependency, and drop the info/debug messages now logged by the 'stun' application if OTP's new logging API is used.
* Subscriber should not send message to moderated room (#3222)Badlop2020-06-241-1/+2
|
* ejabberd_logger: Avoid excessive stat callsHolger Weiss2020-06-231-0/+1
| | | | | | | | | | | By default, the logger_std_h module shipped with OTP 21.0 and newer reads the log file information prior to each and every write operation. This is done to play well with external log rotation tools. In order to minimize the performance penalty in situations where the log file is flooded, configure logger_std_h to skip reading the file information as long as no more than one second has passed since it was last read.
* Correctly handle user_regexp acl rules with not matching hostPaweł Chmielowski2020-06-221-4/+4
| | | | This should fix issue reported in issue 3304
* mod_stun_disco: Fix wording of log messageHolger Weiss2020-06-191-1/+1
|
* Document that only ejabberdctl can join and leave a local node (#3049)Badlop2020-06-091-2/+8
|
* Remove old Regexp, the new Re is available since Erlang/OTP R12B-4Badlop2020-06-081-45/+6
|
* Get back some commented specs that required Erlang R12Badlop2020-06-081-7/+4
|
* When updating group in cache, first delete so insert succeeds (#3296)Badlop2020-06-051-0/+1
|
* Handle ets_cache return value in shared roster get_group_opts (#3296)Badlop2020-06-053-3/+7
|
* misc: Don't crash on URLs without port numberHolger Weiss2020-06-031-2/+8
| | | | | | Let misc:uri_parse/1 return default HTTP(S) port number if the URL doesn't specify a port number, analogous to the behavior when USE_OLD_HTTP_URI is defined.
* misc: Make sure uri_parse/1 returns stringsHolger Weiss2020-06-031-0/+2
| | | | | | | The uri_string:parse/1 function returns the URI elements as strings or as binaries depending on the input. Make sure misc:uri_parse/1 returns strings in both cases, analogous to the behavior when USE_OLD_HTTP_URI is defined.
* mod_stream_mgmt: Don't kill new PID on resumptionHolger Weiss2020-06-012-40/+54
| | | | | | | | | | | | | | | | | | | During XEP-0198 resumption, the ejabberd_c2s process that handles the new connection reopens the ejabberd_sm session of the old one. Since commit b4770815c0b0416c21d01507d2908f94c25b3097, the new process adds the new session table entry before the old process removes the old one. While adding the new one, ejabberd_sm checks for old sessions to replace. This check assumes old SIDs compare lower than new ones. This assumption didn't necessarily hold for the session resumption case, where the old SID's timestamp was copied over to the new SID and only the PID was updated. Therefore, the new process was killed if the new PID happened to be smaller than the old one. Fix this by having mod_stream_mgmt use its own SM-ID rather than copying over the old SID's timestamp to the new SID. Thanks to Thilo Molitor and Friedrich Altheide for reporting the issue, and to Thomas Leister for his help with debugging it.
* Use old http_uri, crypto and pg2 only with old Erlang/OTP (#3284)Badlop2020-06-018-14/+53
|
* Rename 'turn_v4_ip' and 'turn_v6_ip' optionsHolger Weiss2020-05-295-35/+36
| | | | | The 'turn_ipv4_address' and 'turn_ipv6_address' option names are probably more intuitive.