aboutsummaryrefslogtreecommitdiffstats
path: root/util
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | util.timer: If possible, close the existing timer handle in order to have ↵Kim Alvefur2015-11-221-2/+8
| | | | | | | | | | | | | | | | only one
| * | | util.timer: Expire timer instance if another instance is already set to take ↵Kim Alvefur2015-11-221-2/+11
| | | | | | | | | | | | | | | | care of the next scheduled event
| * | | util.timer: Keep count of how many timer instances are activeKim Alvefur2015-11-221-0/+3
| | | |
* | | | Merge 0.10->trunkMatthew Wild2015-11-241-0/+91
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | util.cache: Ordered key->value data structure, with size limit (same as pubsub)Matthew Wild2015-11-241-0/+91
| | |
* | | Merge 0.10->trunkMatthew Wild2015-11-221-4/+1
|\| |
| * | util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses ↵Matthew Wild2015-11-221-4/+1
| | | | | | | | | | | | correctly if they aren't normalized (case, ::, etc.)
* | | Merge 0.10->trunkKim Alvefur2015-11-091-1/+15
|\| |
| * | util.queue: Add luacheck annotationsMatthew Wild2015-10-181-1/+2
| | |
| * | util.queue: Add :items() iteratorMatthew Wild2015-10-181-0/+13
| | |
* | | Merge 0.10->trunkKim Alvefur2015-10-111-3/+7
|\| |
| * | Merge 0.9->0.10Kim Alvefur2015-10-111-3/+7
| |\|
| | * util.openssl: Separate extension sections into one for self-signed certs and ↵Kim Alvefur2015-10-111-3/+7
| | | | | | | | | | | | one for requests
* | | Merge 0.10->trunkKim Alvefur2015-10-021-1/+1
|\| |
| * | util.jid: Fix backoutKim Alvefur2015-10-021-1/+1
| | |
* | | Merge 0.10->trunkKim Alvefur2015-10-021-1/+5
|\| |
| * | Backout 7e820979fd9b (broke tests)Kim Alvefur2015-10-021-1/+5
| | |
* | | util.timer: Fix indentationKim Alvefur2015-09-181-6/+6
| | |
* | | Merge 0.10->trunkKim Alvefur2015-09-171-26/+22
|\| |
| * | util.dataforms: Fix interaction of required fields and empty string values ↵Kim Alvefur2015-09-121-3/+4
| | | | | | | | | | | | (fixes #521)
| * | util.dataforms: Refactor parsing to reuse simple text parser instead of ↵Kim Alvefur2015-09-121-26/+21
| | | | | | | | | | | | duplicate code
* | | Merge 0.10->trunkKim Alvefur2015-09-031-0/+1
|\| |
| * | util.stanza: Export xml_escape (missed during removal of module() calls)Kim Alvefur2015-09-031-0/+1
| | |
* | | Merge 0.10->trunkMatthew Wild2015-09-022-1/+4
|\| |
| * | util.sql: Export db2uri (mod_storage_sql2 command uses it) (thanks mike)Kim Alvefur2015-09-021-0/+1
| | |
| * | util.sql: Log when transactions beginKim Alvefur2015-08-301-0/+1
| | |
| * | util.hex: Normalize hex to lowercase and discard non-hex inputKim Alvefur2015-08-261-1/+2
| | |
* | | Merge 0.10->trunkKim Alvefur2015-08-2037-327/+467
|\| |
| * | util.sasl.scram: Get rid of module callKim Alvefur2015-04-071-4/+7
| | |
| * | util.json: Remove use of newproxyKim Alvefur2015-03-131-5/+2
| | |
| * | util.helpers: Fix order of functions using each other [fixes 00412b36166f]Kim Alvefur2015-03-031-8/+8
| | |
| * | util.dependencies: Only abort on Lua versions before 5.1, log a warning ↵Kim Alvefur2015-02-211-2/+5
| | | | | | | | | | | | about 5.2 and above for now
| * | util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-2135-302/+435
| | | | | | | | | | | | return them in a table at the end
* | | Merge 0.10->trunkKim Alvefur2015-08-113-22/+30
|\| |
| * | util.interpolation: Add support for filter functionsKim Alvefur2015-08-071-1/+9
| | |
| * | util.{interpolation,prosodyctl,sql}: Trim trailing whitespaceKim Alvefur2015-07-173-21/+21
| | |
* | | Merge 0.10->trunkMatthew Wild2015-07-091-5/+30
|\| |
| * | util.sql: Add safety check to ensure our chosen connection charset is ↵Matthew Wild2015-07-081-0/+12
| | | | | | | | | | | | actually being used (MySQL)
| * | util.sql: Fix log level of debug messageMatthew Wild2015-07-081-1/+1
| | |
| * | util.sql: Log debug message when connecting to databaseMatthew Wild2015-07-081-0/+1
| | |
| * | util.sql: Make set_encoding() return failure of SET NAMESMatthew Wild2015-07-081-1/+7
| | |
| * | util.sql: Return failure if set_encoding() failsMatthew Wild2015-07-081-1/+4
| | |
| * | util.sql: Use appropriate collation for the chosen character set - fixes ↵Matthew Wild2015-07-081-1/+1
| | | | | | | | | | | | MySQL silently ignoring our SET NAMES command when we use utf8mb4
| * | util.sql: Create table with same charset as the charset we selected for our ↵Matthew Wild2015-07-081-1/+1
| | | | | | | | | | | | connection, also use corresponding _bin collation
| * | util.sql: Allow onconnect callback to fail connection to the DB by returning ↵Matthew Wild2015-07-071-1/+4
| | | | | | | | | | | | false, err
* | | Merge 0.10->trunkKim Alvefur2015-07-051-0/+4
|\| |
| * | util.sql: Call onconnect, provide noop dummy if not setKim Alvefur2015-07-021-0/+4
| | |
* | | Merge 0.10->trunkKim Alvefur2015-06-252-103/+16
|\| |
| * | util.sql: Remove built-in engine caching. This is the wrong layer to do ↵Matthew Wild2015-06-031-8/+3
| | | | | | | | | | | | this, and unintentionally sharing connections could cause problems (e.g. when interleaving multiple queries and result fetching)
| * | util.sql: Expose db2uri helper functionMatthew Wild2015-06-031-1/+1
| | |