aboutsummaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.10->trunkKim Alvefur2017-09-141-0/+74
|\
| * util.format: A string.format wrapper that gracefully handles invalid argumentsWaqas Hussain2017-09-101-0/+74
| |
* | util.pubsub: Don't record publisher when superuser privileges are used (eg ↵Kim Alvefur2017-07-291-1/+3
| | | | | | | | by modules)
* | util.pubsub: Catch overriden id from storageKim Alvefur2017-04-261-0/+1
| |
* | util.pubsub: Add the publisher as an attribute in the item element.Emmanuel Gil Peyrot2017-04-021-0/+1
| | | | | | | | | | This makes the backend able to obtain the publisher without changing the API.
* | util.pubsub: Add a node parameter to itemstore().Emmanuel Gil Peyrot2017-04-021-4/+4
| | | | | | | | | | This allows the backend to know the node name, when it needs to differentiate it at storage for example.
* | Merge 0.10->trunkKim Alvefur2017-08-281-1/+5
|\|
| * util.sql: Greedily read all rows so we can close queries early (fixes #391)Matthew Wild2017-08-041-1/+5
| |
* | Merge 0.10->trunkKim Alvefur2017-04-251-0/+2
|\|
| * util.prosodyctl: Resolve possibly relative pidfile path (fixes inconsistency ↵Kim Alvefur2017-04-241-0/+2
| | | | | | | | with mod_posix)
* | Merge 0.10->trunkKim Alvefur2017-04-203-4/+5
|\|
| * util.sasl.plain,scram: Record username in sasl state earlierKim Alvefur2017-04-192-2/+3
| |
| * util.datamanager: Use already known index instead of measuring length each ↵Kim Alvefur2017-04-171-2/+2
| | | | | | | | iteration
* | Merge 0.10->trunkKim Alvefur2017-04-131-1/+8
|\|
| * util.sql: Produce more SQL-standard-like debug messagesKim Alvefur2017-04-131-1/+8
| |
* | Merge 0.10->trunkKim Alvefur2017-04-121-2/+2
|\|
| * util.sql: Strip indentation from queries for debug loggingKim Alvefur2017-04-121-0/+1
| |
| * util.sql: Apply quote transform in engine:execute so it is applied to eg ↵Kim Alvefur2017-04-121-2/+1
| | | | | | | | encoding checks in mod_storage_sql (thanks Martin)
* | Merge 0.10->trunkKim Alvefur2017-04-101-14/+12
|\|
| * SQL: Use standard quotes for columns and other identifiers, rewrite to grave ↵Kim Alvefur2017-04-101-14/+12
| | | | | | | | accents for MySQL only (fixes #885)
* | Merge 0.10->trunkKim Alvefur2017-03-312-0/+38
|\|
| * util.array: Add method for filtering out duplicate valuesKim Alvefur2017-03-311-0/+12
| |
| * util.id: New util for producing random identifiers of varying sizesKim Alvefur2017-03-291-0/+26
| |
* | Merge 0.10->trunkKim Alvefur2017-03-281-27/+21
|\|
| * util.datamanager: Log where the error came fromKim Alvefur2017-03-281-3/+4
| |
| * util.datamanager: Rearrange localsKim Alvefur2017-03-281-3/+2
| |
| * util.datamanager: Use pposix.atomic_appendKim Alvefur2017-02-281-23/+17
| |
* | Merge 0.10->trunkKim Alvefur2017-03-232-20/+8
|\|
| * util.datamanager: Remove check for file non-existence since ENOENT tells us ↵Kim Alvefur2017-03-221-18/+4
| | | | | | | | that already
| * util.datamanager: Split long line [luacheck]Kim Alvefur2017-03-221-1/+3
| |
| * util.dependencies: Give APT command for installing lua-secKim Alvefur2017-03-211-1/+1
| |
* | Merge 0.10->trunkKim Alvefur2017-03-204-4/+4
|\|
| * util.statistics,statsd,throttle,timer: Replace dependency on LuaSockect with ↵Kim Alvefur2017-03-204-4/+4
| | | | | | | | util.time for precision time
* | Merge 0.10->trunkKim Alvefur2017-03-161-0/+13
|\|
| * util.array: Add O(n) equality check metamethodKim Alvefur2017-03-161-0/+13
| |
* | Merge 0.10->trunkKim Alvefur2017-03-022-11/+27
|\|
| * util.envload: Close file handle after reading dataKim Alvefur2017-03-011-1/+4
| |
| * util.datamanager: Expose atomic_store as store_rawKim Alvefur2017-03-011-0/+1
| |
| * util.datamanager: Use atomic store function when writing the first entry of ↵Kim Alvefur2017-03-011-4/+1
| | | | | | | | a list
| * util.datamanager: Import value of ENOENT from util.pposix (if available)Kim Alvefur2017-03-011-0/+1
| |
| * util.datamanager: Ignore ENOENT (no such file) when loading dataKim Alvefur2017-03-011-4/+13
| |
| * util.envload: Open file here instead of letting loadfile do it so that all ↵Kim Alvefur2017-03-011-3/+8
| | | | | | | | return values from io.open can be collected
* | Merge 0.10->trunkKim Alvefur2017-03-011-1/+1
|\|
| * util.adhoc: Pass command data to initial_data callback in order to allow ↵Kim Alvefur2017-02-221-1/+1
| | | | | | | | loading per-user settings
* | Merge 0.10->trunkKim Alvefur2017-01-291-11/+13
|\|
| * util.dependencies: Normalize whitespaceKim Alvefur2017-01-281-11/+13
| |
* | Merge 0.10->trunkKim Alvefur2017-01-261-2/+0
|\|
| * util.sslconfig: Remvoe flag merging for 'verify' as this is more of a ↵Kim Alvefur2017-01-261-2/+0
| | | | | | | | tri-state field than a set of options
* | Merge 0.10->trunkKim Alvefur2017-01-231-0/+98
|\|
| * util.rsm: Add copyright headerKim Alvefur2017-01-231-0/+11
| |