aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.11->trunkKim Alvefur2019-05-311-0/+6
|\
| * util.sql: Ignore if tables and indices already exist on creation (fixes #1064)Kim Alvefur2019-05-301-0/+6
| | | | | | | | | | | | Tested with SQLite3 3.16.2 and 3.27.2 and Postgres 11. MySQL does not support IF NOT EXISTS for indices so not handled here.
* | Merge 0.11->trunkKim Alvefur2019-05-301-39/+16
|\|
| * mod_pep: Handle presence based subscription outside of util.pubsub (fixes #1372)Kim Alvefur2019-05-301-37/+17
| | | | | | | | | | | | | | | | | | Subscriptions were updated for each incoming presence stanza from contacts. Each subscription change triggered a configuration save, which would filter out the presence based subscriptions and usually end up replacing the existing data with identical data. With many subscribed nodes this adds up to a fair bit of IO bound work that is avoided by keeping them separate.
* | util.format: Handle integer formats the same way on Lua versions without ↵Kim Alvefur2019-05-302-2/+6
| | | | | | | | integer support
* | util.format: Handle formats expecting an integer in Lua 5.3+ (fixes #1371)Kim Alvefur2019-05-302-0/+7
| |
* | mod_storage_sql: Ignore shadowed error variable [luacheck]Kim Alvefur2019-05-281-1/+1
| |
* | mod_storage_sql: Fix to use correct arguments to archive id lookupKim Alvefur2019-05-281-2/+2
| |
* | mod_storage_sql: Correctly return item-not-found errorKim Alvefur2019-05-281-2/+3
| | | | | | | | `return ok, err` comes out as `transaction_ok, ok, err`
* | Merge 0.11->trunkKim Alvefur2019-05-272-3/+14
|\|
| * mod_muc_mam: Cache last date that archive owner has messages to reduce ↵Kim Alvefur2019-05-271-1/+7
| | | | | | | | writes (fixes #1368)
| * mod_mam: Cache last date that archive owner has messages to reduce writes ↵Kim Alvefur2019-05-271-1/+7
| | | | | | | | (fixes #1368)
* | Merge 0.11->trunkKim Alvefur2019-05-271-1/+1
|\|
| * mod_announce: Check for admin on current virtualhost instead of global ↵Kim Alvefur2019-05-271-1/+1
| | | | | | | | (fixes #1365) (thanks yc)
* | mod_csi_simple: Disable optimizations on disconnect (fixes #1358)Kim Alvefur2019-05-261-0/+4
| | | | | | | | | | The connection becomes invalid here, regardless of 3rd party modules that might keep the session alive.
* | mod_storage_internal: Return appropriate error even with empty archiveKim Alvefur2019-05-051-0/+3
| |
* | mod_storage_memory: Return correct error even if no archive data availableKim Alvefur2019-05-051-0/+3
| |
* | mod_muc_mam: Propagate item-not-found to client (fixes #1325)Kim Alvefur2019-05-051-1/+5
| |
* | mod_mam: Propagate item-not-found to client (fixes #1325)Kim Alvefur2019-05-051-1/+5
| |
* | mod_storage_sql: Look up archive IDs in separate queries (fixes #1325)Kim Alvefur2019-03-231-29/+29
| | | | | | | | This is probably not good for performance.
* | mod_storage_memory: Return error if 'before' or 'after' are not found ↵Kim Alvefur2019-03-051-0/+10
| | | | | | | | (partial fix for #1325)
* | mod_storage_internal: Return error if 'before' or 'after' are not found ↵Kim Alvefur2019-03-051-0/+10
| | | | | | | | (partial fix for #1325)
* | Merge 0.11->trunkKim Alvefur2019-05-263-16/+33
|\|
| * util.random: Throw different error for EOL conditionKim Alvefur2019-05-211-1/+5
| |
| * util.random: Coerce error to string (thanks waqas)Kim Alvefur2019-05-181-1/+1
| | | | | | | | | | In theory this could happen in an EOF condition, which should be impossible with a read from /dev/urandom.
| * util.random: Handle unlikely read errors from /dev/urandom (see #1313)Kim Alvefur2019-05-181-1/+5
| |
| * mod_c2s: Associate connection with session last (fixes #1313)Kim Alvefur2019-05-181-1/+2
| | | | | | | | | | This way, any fatal error in the callback will not leave a half-established session.
| * mod_storage_sql: Handle SQLite DELETE with LIMIT being optional (fixes #1359)Kim Alvefur2019-05-131-6/+15
| |
| * mod_storage_sql: Move code out of if-else chainKim Alvefur2019-05-131-9/+8
| |
* | configure: Respect previously set paths in macosx presetKim Alvefur2019-05-131-4/+8
| |
* | configure: Remove preset settings that are autodiscoveredKim Alvefur2019-05-131-14/+0
| | | | | | | | These are likely wrong if other flags have been given.
* | configure: Handle ostype preset after argument processingKim Alvefur2019-05-131-67/+71
| |
* | util.hashring: Add testsMatthew Wild2019-05-131-0/+85
| |
* | util.encodings: Declare absence of arguments [-Wstrict-prototypes]Kim Alvefur2019-05-131-1/+1
| |
* | util.hashring: Implementation of hashring data structureMatthew Wild2019-05-131-0/+88
| |
* | migrator: Add support for archives (fixes #651)Kim Alvefur2019-05-051-0/+6
| |
* | migrator: Rewrite to use storage modulesKim Alvefur2019-05-057-439/+143
| | | | | | | | | | This allows migrating to and from any storage module that supports the right methods. Based on experimental mod_migrate work.
* | mod_storage_sql: Add support for iterating over users in archive storesKim Alvefur2019-05-051-0/+13
| |
* | mod_storage_internal: Add support for iterating over users in archive storesKim Alvefur2019-05-051-0/+4
| | | | | | | | May help with writing a better migrator
* | mod_muc_mam: Handle archive quotasKim Alvefur2019-05-051-4/+31
| | | | | | | | Same as in mod_mam
* | Merge 0.11->trunkKim Alvefur2019-05-051-0/+7
|\|
| * configure: Handle lua being found in /bin (workaround for #1353)Kim Alvefur2019-05-041-0/+7
| |
* | mod_storage_internal,memory: Only return total count if requestedKim Alvefur2019-05-052-11/+23
| |
* | net.http.files: Bump cache hits so they stay cachedKim Alvefur2019-05-041-0/+1
| | | | | | | | It's not an LRU cache unless this is done.
* | Merge 0.11->trunkKim Alvefur2019-05-041-1/+1
|\|
| * net.server_epoll: Restore wantread flag after pause (fixes #1354)Kim Alvefur2019-05-041-1/+1
| | | | | | | | | | | | | | | | | | If a chunk of data has been received that is larger than the amount read at a time, then the connection is paused for a short time after which it tries to read some more. If, after that, there is still more data to read, it should do the same thing. However, because the "want read" flag is removed and was restored after the delayed reading, it would not schedule another delayed read.
* | Fix various spelling mistakes [codespell]Kim Alvefur2019-05-035-6/+6
| |
* | Merge 0.11->trunkKim Alvefur2019-05-031-0/+1
|\|
| * prosodyctl: Include version of LuaDBI in 'about'Kim Alvefur2019-05-011-0/+1
| |
* | mod_bosh: Added metrics for active/inactive sessions, new BOSH sessions, ↵Arc Riley2019-05-031-2/+28
| | | | | | | | BOSH errors, and timeouts (finishes #998)