Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests: Add some comments to xep54 test | Kim Alvefur | 2018-10-20 | 1 | -0/+3 |
| | |||||
* | tests: Remove initial read since XEP is unclear (see #1104) | Kim Alvefur | 2018-10-20 | 1 | -10/+0 |
| | | | | | If the store is empty then either this empty vCard element or an item-not-found error is acceptable. | ||||
* | tests: Set a proper title for vCard test | Kim Alvefur | 2018-10-20 | 1 | -0/+1 |
| | |||||
* | tests: Add simple test case for XEP-0054 | Kim Alvefur | 2018-10-20 | 1 | -0/+86 |
| | |||||
* | mod_vcard_legacy: Pass node defaults to publish instead of create | Kim Alvefur | 2018-10-20 | 1 | -8/+3 |
| | | | | | | The create calls were introduced in 62fa766d8f3 but work on this started a while before 038446c50630 allowed passing the _defaults_only flag to publish. | ||||
* | CHANGES: Mention server_epoll | Kim Alvefur | 2018-10-18 | 1 | -0/+1 |
| | |||||
* | mod_vcard_legacy: Create nodes with open access (fixes #1221) | Kim Alvefur | 2018-10-18 | 1 | -0/+10 |
| | | | | | | | | | | | Less drastic change from mod_vcard where everything is always public. This allows users to configure nodes without needing to for the old behaviour. Thanks to 038446c50630 users may still override this. Due to #1222 this may still not apply if the node has already been created by an automatic subscription | ||||
* | util.promise: Add promise.try() | Matthew Wild | 2018-10-18 | 2 | -0/+57 |
| | |||||
* | util.pubsub: Allow publishing with a config that should be used as defaults only | Matthew Wild | 2018-10-18 | 2 | -4/+35 |
| | |||||
* | util.promise: Add a string representation | Kim Alvefur | 2018-10-18 | 1 | -0/+4 |
| | |||||
* | util.promise: Add promise:finally() | Matthew Wild | 2018-10-18 | 2 | -0/+73 |
| | |||||
* | util.promise: Some code relocation | Matthew Wild | 2018-10-18 | 1 | -23/+23 |
| | |||||
* | util.promise: Also support automatic resolution by returning a promise from ↵ | Matthew Wild | 2018-10-18 | 1 | -1/+3 |
| | | | | | | | an on_reject handler Originally unimplemented because it wasn't clear to me what the correct behaviour was, but the A+ spec is clear that both onFulfilled and onRejected may return a promise. | ||||
* | util.promise: Add additional test for promise.reject() | Matthew Wild | 2018-10-18 | 1 | -0/+6 |
| | |||||
* | util.promise: Fix promise.reject() to return a rejected promise, and fix ↵ | Matthew Wild | 2018-10-18 | 2 | -2/+2 |
| | | | | buggy test for it | ||||
* | core.moduleapi: Remove redundant condition | Kim Alvefur | 2018-10-18 | 1 | -1/+1 |
| | |||||
* | net.server_epoll: Special handling of signal interrupts | Kim Alvefur | 2018-10-12 | 2 | -1/+6 |
| | |||||
* | net.server_epoll: Ignore ENOENT when deregitering socket | Kim Alvefur | 2018-10-12 | 2 | -2/+4 |
| | | | | It should not really happen | ||||
* | net.server_epoll: Graceful handling of registering already added socket | Kim Alvefur | 2018-10-12 | 2 | -2/+15 |
| | |||||
* | util.http: Add tests for normalize_path | Kim Alvefur | 2018-10-14 | 1 | -0/+23 |
| | |||||
* | mod_http: Move normalize_path to util.http | Kim Alvefur | 2018-10-14 | 2 | -10/+12 |
| | |||||
* | Merge 0.10->trunk | Kim Alvefur | 2018-10-14 | 1 | -3/+7 |
|\ | |||||
| * | mod_http: Make sure path from http_external_url always ends with a slash ↵ | Kim Alvefur | 2018-10-14 | 1 | -3/+7 |
| | | | | | | | | (fixes #1183) | ||||
* | | mod_storage_sql: Fix issue number in comment that was fixed by 55b40f3fa659 ↵ | Matthew Wild | 2018-10-13 | 1 | -1/+1 |
| | | | | | | | | (fixes #1073) | ||||
* | | mod_storage_sql: Keep prosodyarchive_index unique constraint on non-MySQL DBs | Matthew Wild | 2018-10-12 | 1 | -1/+1 |
| | | |||||
* | | net.server: Swich method for connecting sockets with remotes | Kim Alvefur | 2018-10-12 | 3 | -3/+3 |
| | | | | | | | | | | | | | | LuaSocket TCP sockets have have both :connect and :setpeername, which are the exact same function, however UDP sockets only have :setpeername. Switching to :setpeername allows most of this code to be generic wrt TCP/UDP. | ||||
* | | net.server_epoll: Check return conditions of early socket setup | Kim Alvefur | 2018-10-12 | 1 | -2/+4 |
| | | |||||
* | | net.server_epoll: Add support for the conn_type argument to addclient | Kim Alvefur | 2018-10-12 | 1 | -8/+16 |
| | | |||||
* | | net.resolvers.basic: Suffix IPv4 TCP socket types with '4' to match eg 'tcp6' | Kim Alvefur | 2018-10-12 | 1 | -2/+2 |
| | | |||||
* | | net.server: Remove socket constructor fallback | Kim Alvefur | 2018-10-12 | 2 | -2/+2 |
| | | | | | | | | Should no longer be needed | ||||
* | | util.dependencies: Add compat code for normalization of socket constructors | Kim Alvefur | 2018-10-12 | 1 | -0/+4 |
| | | | | | | | | | | | | Old LuaSocket had only tcp() which was IPv4-only. LuaSocket ~3.0 adds a tcp6() that creates a IPv6 socket. Some version moves tcp() to tcp4() and adds an IP-version-agnostic tcp() constructor. | ||||
* | | mod_storage_sql: Change prosodyarchive_index to be non-unique (fixes #1087) | Matthew Wild | 2018-10-11 | 1 | -8/+25 |
| | | | | | | | | | | | | MySQL requires that the first 20 bytes are unique, even if they differ after the first 20 bytes. This breaks e.g. pubsub/PEP nodes longer than 20 characters that have common prefixes. | ||||
* | | mod_storage_sql: Have :users() throw an error on failure instead of ↵ | Matthew Wild | 2018-10-11 | 1 | -1/+1 |
| | | | | | | | | returning non-iterator values | ||||
* | | storagemanager tests: Also cover memory driver | Kim Alvefur | 2018-10-12 | 1 | -0/+3 |
| | | |||||
* | | mod_c2s: Fix fallback for missing session logger | Kim Alvefur | 2018-10-12 | 1 | -1/+1 |
| | | |||||
* | | util.stanza: Set preserialize as freeze metamethod | Kim Alvefur | 2018-10-12 | 1 | -0/+2 |
| | | |||||
* | | util.set: Add freeze metamethod | Kim Alvefur | 2018-10-12 | 1 | -0/+8 |
| | | |||||
* | | util.array: Add freeze metamethod | Kim Alvefur | 2018-10-12 | 1 | -0/+2 |
| | | |||||
* | | util.serialization: Remove encoding of very large or very small numbers in ↵ | Kim Alvefur | 2018-10-12 | 1 | -12/+1 |
| | | | | | | | | | | | | | | | | scientific notation Also difficult to describe this option, easier to remove it. %.18g covers a very large range of numbers | ||||
* | | util.serialization: Simpler metatable pre-processing | Kim Alvefur | 2018-10-12 | 2 | -14/+20 |
| | | | | | | | | It was too difficult to describe what it did. | ||||
* | | util.serialization: Use '=' prefix for chunk source description | Kim Alvefur | 2018-10-11 | 1 | -1/+1 |
| | | | | | | | | Like in bd5e4485a245 | ||||
* | | util.serialization: Make check of prefix for optional hex encoding stricter | Kim Alvefur | 2018-10-11 | 1 | -1/+1 |
| | | |||||
* | | util.serialization: Test table keys that are Lua keywords | Kim Alvefur | 2018-10-11 | 1 | -0/+1 |
| | | |||||
* | | util.serialization: Test that it rejects tables wit cycles | Kim Alvefur | 2018-10-11 | 1 | -0/+7 |
| | | |||||
* | | util.serialization: Make errors fatal by default (like the previous ↵ | Kim Alvefur | 2018-10-11 | 2 | -2/+12 |
| | | | | | | | | implementation) | ||||
* | | mod_storage_sql: Workaround MySQL not supporting LIMIT subquery in archive ↵ | Matthew Wild | 2018-10-11 | 1 | -3/+9 |
| | | | | | | | | truncate operations, fixes #1200 | ||||
* | | util.poll: Fix inverted logic | Kim Alvefur | 2018-10-11 | 1 | -1/+1 |
| | | |||||
* | | net.server_epoll: Assert successful creation of util.poll handle | Kim Alvefur | 2018-10-11 | 1 | -1/+1 |
| | | |||||
* | | util.poll: Handle failed epoll FD creation | Kim Alvefur | 2018-10-11 | 1 | -1/+12 |
| | | |||||
* | | util.poll: Early return from __gc in case of no valid epoll FD | Kim Alvefur | 2018-10-11 | 1 | -0/+4 |
| | | | | | | | | | | This could happen if the epoll FD has already been closed or the epoll_create call failed |