Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mod_admin_shell: Add muc:occupants(room) command to list occupants | Kim Alvefur | 2023-01-29 | 2 | -1/+31 |
| | | | | | Easier than going trough muc:room():each_occupant() since you have to do fiddly things to reach the print() function. | ||||
* | Merge 0.12->trunk | Kim Alvefur | 2023-01-22 | 3 | -7/+7 |
|\ | |||||
| * | util.startup: Close state on exit to ensure GC finalizers are called | Kim Alvefur | 2023-01-22 | 2 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Ensures a last round of garbage collection and that finalizers are called. Fixes things like proper closing of SQLite3 state. There are more calls to os.exit() but most of them exit with an error or in a case where a final GC sweep might not matter as much. It would be nice if this was the default. Calling util.statup.exit() everywhere may be sensible, but would be more involved, requiring imports everywhere. | ||||
| * | util.prosodyctl.shell: Close state on exit to fix saving shell history | Kim Alvefur | 2023-01-22 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures a last round of garbage collection and finalizers, which should include flushing the readline history file. Test procedure: ``` $ ./prosodyctl shell prosody> s2s:show() -- any command that is not the last in history ... output prosody> bye $ ./prosodyctl shell prosody> ^P ``` After this, the shell prompt should contain the last command from before the "bye". Before this patch, recent history is gone most of the time. | ||||
* | | mod_muc_mam: Use higher precision timestamps | Kim Alvefur | 2023-01-21 | 1 | -1/+1 |
| | | | | | | | | See also 781772c8b6d9 | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-21 | 2 | -8/+25 |
|\| | |||||
| * | mod_muc_mam: Copy "include total" behavior from mod_mam | Kim Alvefur | 2023-01-21 | 1 | -1/+5 |
| | | | | | | | | | | Not sure why this was missing from MUC MAM, it already had some of the code for dealing with it. | ||||
| * | mod_muc_mam: Add mam#extended form fields #1796 (Thanks Rain) | Kim Alvefur | 2023-01-21 | 1 | -0/+10 |
| | | | | | | | | Oversight in cabb022f31c0 | ||||
| * | mod_mam,mod_muc_mam: Minimize differences (reorder, copy some comments) | Kim Alvefur | 2023-01-21 | 2 | -8/+11 |
| | | | | | | | | | | Should have no functional difference, but makes it easier keeping mod_mam and mod_muc_mam in sync. | ||||
* | | util.dnsregistry: Remove unintentional 'Unassigned' record | Kim Alvefur | 2023-01-20 | 1 | -2/+1 |
| | | |||||
* | | tools/dnsregistry: Fix to ignore unassigned entries | Kim Alvefur | 2023-01-20 | 1 | -1/+1 |
| | | |||||
* | | MUC: Add note about non-existant room method | Kim Alvefur | 2023-01-20 | 1 | -1/+1 |
| | | |||||
* | | util.struct: Fix typo in comment | Kim Alvefur | 2023-01-20 | 1 | -1/+1 |
| | | |||||
* | | mod_admin_socket: Fix typo in comments | Kim Alvefur | 2023-01-20 | 2 | -2/+2 |
| | | | | | | | | Introduced in 6966026262f4 | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-19 | 1 | -0/+1 |
|\| | |||||
| * | mod_smacks: Log something when hibernation starts | Kim Alvefur | 2023-01-19 | 1 | -0/+1 |
| | | | | | | | | | | Will hopefully save future confusion about sessions being destroyed when they are in fact not. | ||||
* | | luacheck: Remove long gone mod_storage_sql1 from excludes | Kim Alvefur | 2023-01-19 | 1 | -2/+0 |
| | | | | | | | | No point not checking a file that doesn't exist | ||||
* | | util.sqlite3: Skip prepared statements when no parameters are given | Kim Alvefur | 2022-08-01 | 1 | -0/+10 |
| | | | | | | | | | | Seems CREATE INDEX is unhappy as a prepared statement. Perhaps because the table has not been COMMIT-ed yet? | ||||
* | | util.sqlite3: Create util.error registry from headers | Kim Alvefur | 2021-10-01 | 1 | -35/+44 |
| | | | | | | | | The 'type' fields are a first guess. | ||||
* | | mod_storage_sql: Support SQLite3 without LuaDBI | Kim Alvefur | 2023-01-19 | 2 | -1/+9 |
| | | |||||
* | | util.sqlite3: SQLite3-only variant of util.sql using LuaSQLite3 | Kim Alvefur | 2022-08-01 | 1 | -0/+390 |
| | | | | | | | | http://lua.sqlite.org/ | ||||
* | | util.hashes: Silence compiler warning about char pointer signedness | Kim Alvefur | 2023-01-17 | 1 | -1/+1 |
| | | | | | | | | Introduced in dbe9781fd278 | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-14 | 1 | -4/+8 |
|\| | |||||
| * | prosodyctl check dns: Check for Direct TLS SRV records even if not ↵ | Kim Alvefur | 2023-01-14 | 1 | -4/+8 |
| | | | | | | | | | | | | | | configured (fix #1793) Existing such records may cause timeouts or errors in clients and servers trying to connect, despite prosodyctl check saying all is well | ||||
* | | spec: Suppress some harmless luacheck warnings in tests | Matthew Wild | 2023-01-13 | 2 | -0/+3 |
| | | |||||
* | | util.paseto: Add support for v3.local tokens | Matthew Wild | 2023-01-13 | 2 | -18/+289 |
| | | |||||
* | | util.paseto: Fix omitted parameter | Matthew Wild | 2023-01-13 | 1 | -1/+1 |
| | | |||||
* | | util.paseto: Stricter base64 decoding, as per spec | Matthew Wild | 2023-01-13 | 1 | -0/+11 |
| | | |||||
* | | util.crypto: Add support for AES-256-CTR | Matthew Wild | 2023-01-13 | 2 | -21/+61 |
| | | | | | | | | This is required by PASETO v3.local | ||||
* | | util.hashes: Add HKDF-HMAC-SHA256/HKDF-HMAC-SHA384 | Matthew Wild | 2023-01-13 | 2 | -0/+97 |
| | | | | | | | | These are needed for PASETO v3.local. | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-10 | 1 | -2/+2 |
|\| | |||||
| * | mod_invites: Prefer landing page over xmpp URI in shell command | Kim Alvefur | 2023-01-10 | 1 | -2/+2 |
| | | | | | | | | To mirror behavior of prosodyctl invocation | ||||
* | | net.http.server: Close file handle earlier | Kim Alvefur | 2023-01-08 | 1 | -1/+1 |
| | | | | | | | | | | Frees unneeded resources earlier, so they're not held on to while potentially sending the chunk trailer. | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-08 | 1 | -1/+1 |
|\| | |||||
| * | net.http.server: Fix #1789 | Kim Alvefur | 2023-01-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | Unregistering the response before sending the trailer of the chunked transfer encoding prevents opportunistic writes from being invoked and running this code again when, which may cause an error when closing the file handle a second time. Normally the file size is known, so no chuck headers are sent. | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2023-01-06 | 1 | -14/+12 |
|\| | |||||
| * | mod_storage_sql: Fix #1639 | Kim Alvefur | 2023-01-01 | 1 | -14/+12 |
| | | | | | | | | Patch by Peter Kieser | ||||
* | | net.server_epoll: Remove delay on last main loop iteration when quitting | Kim Alvefur | 2023-01-06 | 1 | -7/+8 |
| | | | | | | | | | | | | | | Main difference is that timers are not checked unconditionally before each poll, only when running out of previous poll results (hidden by util.poll). This removes a final poll at shutdown that usually delays the 'not quitting' condition check by one second. | ||||
* | | net.server_epoll: Factor out single main loop step into its own function | Kim Alvefur | 2023-01-06 | 1 | -1/+26 |
| | | | | | | | | | | This isn't actually used in Prosody, so no value in complicating the real main loop because of it | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2022-12-29 | 0 | -0/+0 |
|\| | |||||
| * | configure: Fix quoting of $LUA_SUFFIX (thanks shellcheck/Zash) | Matthew Wild | 2022-12-29 | 1 | -1/+1 |
| | | | | | | | | Transplanted 6b43bf85032b from trunk | ||||
* | | Merge 0.12->trunk | Kim Alvefur | 2022-12-29 | 1 | -1/+0 |
|\| | |||||
| * | mod_storage_sql: Don't avoid initialization under prosodyctl (fix #1787) | Kim Alvefur | 2022-12-29 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | Fixes `prosodyctl adduser` etc. Prior to d580e6a57cbb the line did nothing. Sometimes storage in the prosodyctl context does cause weirdness, as it is not in a host context, but rather a variant of global. | ||||
* | | configure: Fix quoting of $LUA_SUFFIX (thanks shellcheck/Zash) | Matthew Wild | 2022-12-29 | 1 | -1/+1 |
| | | |||||
* | | sessionmanager: Fire event before retiring old session | Matthew Wild | 2022-12-29 | 1 | -3/+4 |
| | | | | | | | | | | This allows for modules to update fields, which is generally better than maintaining this hard-coded list of transferable properties here. | ||||
* | | sessionmanager: Pluck sasl_handler from old session when resuming (fixes #1785) | Matthew Wild | 2022-12-29 | 1 | -0/+1 |
| | | |||||
* | | doap: Fix RDF syntax (thanks Link Mauve) | Kim Alvefur | 2022-12-28 | 1 | -2/+4 |
| | | |||||
* | | util.datamapper: Simplify test schema | Kim Alvefur | 2022-12-20 | 1 | -12/+12 |
| | | | | | | | | | | Don't need the function, more compact to just reference the same reference table. | ||||
* | | util.openmetrics: Update tools.ietf.org URL to datatracker | Kim Alvefur | 2022-12-19 | 1 | -1/+1 |
| | | | | | | | | See bd9e006a7a74 for more context | ||||
* | | mod_s2s_auth_certs: Validate certificates against secure SRV targets | Kim Alvefur | 2022-12-22 | 1 | -0/+10 |
| | | | | | | | | | | | | | | Secure delegation or "Mini-DANE" As with the existing DANE support, only usable in one direction, client certificate authentication will fail if this is relied on. |