Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net.resolvers.service: Fix reporting of Bogus DNSSEC results | Kim Alvefur | 2022-12-21 | 1 | -3/+6 |
| | | | | | | | | | The order of checks led to Bogus results being reported with a generic "unable to resolve service". This had no practical effects as such results are simply empty and the process would stop there. Tested by attempting to establish s2s with dnssec-bogus.sg and observing the error reply. | ||||
* | Revert unintentionally committed parts of 12bd40b8e105 | Kim Alvefur | 2022-12-21 | 3 | -19/+5 |
| | |||||
* | mod_s2s: Retrieve stanza size limit from peer for bidi connections | Kim Alvefur | 2022-11-09 | 1 | -0/+7 |
| | | | | | | Having mod_s2s know about the bidi namespace is perhaps a bit awkward but putting this in mod_s2s_bidi would be more awkward as it has nothing to do with limits. Some indirection event could be added in the future. | ||||
* | mod_s2s: Advertise stream features on bidi connections | Kim Alvefur | 2022-10-20 | 1 | -0/+6 |
| | |||||
* | mod_s2s_bidi: Add provisions for advertising features to bidi peers | Kim Alvefur | 2022-10-20 | 1 | -1/+3 |
| | | | | As introduced in XEP-xxxx: Stream Limits Advertisement | ||||
* | mod_c2s,mod_s2s: Adapt to XEP-xxxx: Stream Limits Advertisement | Kim Alvefur | 2022-10-20 | 6 | -9/+29 |
| | | | | Thanks MattJ | ||||
* | mod_s2s: Avoid sending too large stanzas | Kim Alvefur | 2021-03-16 | 1 | -0/+5 |
| | | | | | | | | Just dropping them isn't great but hopefully something more sensible can be done in the future. Will need work to ensure that this signal is handled correctly in sending modules etc. | ||||
* | mod_s2s: Record stanza size limit advertised by other servers | Kim Alvefur | 2021-03-16 | 1 | -0/+4 |
| | | | | For future use, i.e. canceling sending of stanzas that exceed the limit | ||||
* | mod_s2s: Advertise stanza size limit to other servers | Kim Alvefur | 2021-03-16 | 1 | -0/+5 |
| | | | | So they can, like, not send big stanzas. | ||||
* | mod_c2s: Advertise stanza size limit to clients | Kim Alvefur | 2021-03-16 | 1 | -0/+4 |
| | | | | | | | Should help clients avoid sending stanzas that will get their stream killed. Custom namespace while ironing out the protocol. My spoon is too big! | ||||
* | mod_smacks: Factor out resumption token table key generation | Kim Alvefur | 2022-11-13 | 1 | -4/+8 |
| | | | | So that happens in a single place, where it can be changed easier. | ||||
* | Merge 0.12->trunk | Kim Alvefur | 2022-12-12 | 181 | -1973/+6130 |
|\ | |||||
| * | mod_smacks: Only track resumable sessions | Kim Alvefur | 2022-11-18 | 1 | -1/+3 |
| | | | | | | | | Required due to track_session() having moved here | ||||
| * | util.hashring: Support associating arbitrary data with nodes | Matthew Wild | 2022-12-02 | 2 | -9/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this API, a 'node' is always a simple text string. Sometimes the caller may have a more complex structure representing a node, but the hash ring is really only concerned with the node's name. This API change allows :add_nodes() to take a table of `node_name = value` pairs, as well as the simple array of node names previously accepted. The 'value' of the selected node is returned as a new second result from :get_node(). If no value is passed when a node is added, it defaults to `true` (as before, but this was never previously exposed). | ||||
| * | util.hashring: tests: don't randomize order - they are written in a ↵ | Matthew Wild | 2022-12-02 | 1 | -0/+1 |
| | | | | | | | | sequential style | ||||
| * | Merge 0.12->trunk | Matthew Wild | 2022-11-04 | 2 | -5/+22 |
| |\ | |||||
| * \ | Merge 0.12->trunk | Matthew Wild | 2022-10-31 | 1 | -4/+11 |
| |\ \ | |||||
| * \ \ | Merge 0.12->trunk | Kim Alvefur | 2022-10-24 | 1 | -1/+5 |
| |\ \ \ | |||||
| * | | | | util.prosodyctl.cert: Remove Lua 5.1 os.execute() return value compat | Kim Alvefur | 2022-10-20 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | util.prosodyctl: Remove Lua 5.1 os.execute() return value compat | Kim Alvefur | 2022-10-20 | 1 | -2/+1 |
| | | | | | |||||
| * | | | | util.openssl: Remove Lua 5.1 os.execute() return value compat | Kim Alvefur | 2022-10-20 | 1 | -2/+1 |
| | | | | | |||||
| * | | | | util.human.io: Fix handling of os.execute() return values in Lua 5.2+ | Kim Alvefur | 2022-10-20 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | Wrong part of Lua 5.1 compat removed in 0f4feaf9ca64 | ||||
| * | | | | util.mathcompat: Module to ease reuse of math.type() | Kim Alvefur | 2022-10-20 | 7 | -10/+41 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Mostly to ensure it is available during tests, as util.startup is not invoked there | ||||
| * | | | | util.startup: Provide a common Lua 5.3+ math.type() for Lua 5.2 | Kim Alvefur | 2022-10-19 | 4 | -9/+17 |
| | | | | | | | | | | | | | | | | | | | | Code deduplication | ||||
| * | | | | Merge 0.12->trunk | Kim Alvefur | 2022-10-20 | 1 | -1/+1 |
| |\ \ \ \ | |||||
| * | | | | | util.smqueue: Improve tests | Kim Alvefur | 2022-10-19 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | Result of mutation testing. One mutant remaining. | ||||
| * | | | | | util.jsonpointer: Improve tests | Kim Alvefur | 2022-10-19 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Result of mutation testing Remaining mutants are mostly relating to the math.type() fallback. Another case being that array[#array+1] == array[#array+2] and thus doesn't matter. | ||||
| * | | | | | util.datamapper: Remove leftover debug assert (Only Teal, not included in build) | Kim Alvefur | 2022-10-19 | 1 | -4/+0 |
| | | | | | | |||||
| * | | | | | mod_blocklist: Add option 'migrate_legacy_blocking' to disable migration ↵ | Kim Alvefur | 2022-10-17 | 2 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from mod_privacy Tiny performance improvement for new users by skipping this check. Most servers should have gone trough the migration for all active users long ago. As a suitable first step of phasing out this code, we make it possible to disable it first. Later it can be disabled by default, before finally the code is deleted. | ||||
| * | | | | | util.stanza: Add new methods to Teal interface specification | Kim Alvefur | 2022-10-17 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at_top: 21217f7e82b9 get_child_with_attr: 39164ea2ab9e get_child_attr: e8934ce6ea0f add_error: 5f182bccf33f | ||||
| * | | | | | mod_c2s: Include stream attributes in stream-features event | Matthew Wild | 2022-10-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | We need this to access 'from' in SASL2/FAST. | ||||
| * | | | | | mod_tokenauth: Allow attaching an arbitrary data table to a token | Matthew Wild | 2022-10-13 | 1 | -1/+2 |
| | | | | | | |||||
| * | | | | | util.cache: Add some missing test cases | Matthew Wild | 2022-10-13 | 1 | -0/+52 |
| | | | | | | | | | | | | | | | | | | | | | | | | Found via mutation testing. | ||||
| * | | | | | util.jid: Add test for invalid domain but valid UTF-8 (thanks jonas) | Matthew Wild | 2022-10-11 | 1 | -0/+1 |
| | | | | | | |||||
| * | | | | | util.jid: Simplify boolean logic in conditionals | Matthew Wild | 2022-10-11 | 1 | -3/+3 |
| | | | | | | |||||
| * | | | | | util.jid: Remove redundant check from split() (micro-optimization?) | Matthew Wild | 2022-10-11 | 1 | -2/+1 |
| | | | | | | |||||
| * | | | | | util.jid: Add missing test cases | Matthew Wild | 2022-10-11 | 1 | -0/+40 |
| | | | | | | | | | | | | | | | | | | | | | | | | (98% mutant score, single remaining mutant is a string.sub equivalent) | ||||
| * | | | | | .luacheckrc: Add test_mutants.sh.lua to the ignore list | Matthew Wild | 2022-10-11 | 1 | -0/+1 |
| | | | | | | |||||
| * | | | | | tools: Add initial mutation testing script | Matthew Wild | 2022-10-11 | 1 | -0/+217 |
| | | | | | | |||||
| * | | | | | util.dbuffer: Add a bunch of missing test cases | Matthew Wild | 2022-10-11 | 1 | -2/+70 |
| | | | | | | | | | | | | | | | | | | | | | | | | Found via mutation testing. | ||||
| * | | | | | util.dbuffer: Add efficient shortcuts for discard() in certain cases | Matthew Wild | 2022-10-11 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the buffer is already empty, nothing to do. If we're throwing away the whole buffer, we can just empty it and avoid read_chunk() (which in turn may collapse()). These shortcuts are much more efficient. | ||||
| * | | | | | util.dbuffer: Remove redundant code (read_chunk() cannot fail at this point) | Matthew Wild | 2022-10-11 | 1 | -7/+3 |
| | | | | | | |||||
| * | | | | | Merge 0.12->trunk | Kim Alvefur | 2022-10-09 | 2 | -10/+16 |
| |\ \ \ \ \ | |||||
| * | | | | | | util.datetime: Add some missing test cases | Matthew Wild | 2022-10-08 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | You guessed it, mutation testing. | ||||
| * | | | | | | util.roles: Fix tests to use autogenerated role id | Matthew Wild | 2022-10-08 | 1 | -1/+1 |
| | | | | | | | |||||
| * | | | | | | util.roles: Add some more missing test cases | Matthew Wild | 2022-10-08 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found via mutation testing. | ||||
| * | | | | | | util.promise: Fix field name in failing test (introduced in 2639e0e1c378) | Matthew Wild | 2022-10-07 | 1 | -1/+1 |
| | | | | | | | |||||
| * | | | | | | util.promise: Add some missing test cases (found through mutation testing) | Matthew Wild | 2022-10-07 | 1 | -0/+25 |
| | | | | | | | |||||
| * | | | | | | util.promise: Remove line that was supposed to be removed in eb9814372c54 | Matthew Wild | 2022-10-07 | 1 | -1/+0 |
| | | | | | | | |||||
| * | | | | | | util.promise: Remove some redundant checks, add tests confirming redundancy | Matthew Wild | 2022-10-07 | 2 | -4/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lines don't appear to do anything useful, and all tests pass when they are removed. Discovered via mutation testing. I added extra tests to exercise this code, because I wasn't certain that there were no side-effects caused by removal. Everything appears to be fine, thanks to the "pending" check at the start of promise_settle(). |