Kim Alvefur
9be5cb3fbd
net.unbound: Strip support for legacy net.server APIs
...
These are not needed since the watchfd API is provided by all net.server
backends.
6 years ago
Kim Alvefur
bde46d79cd
net.adns: Log a warning if loaded (because net.unbound wasn't)
6 years ago
Kim Alvefur
c98a6d205e
util.dependencies: Prefer net.unbound over net.adns
6 years ago
Kim Alvefur
4a42f8042d
prosodyctl about: Report versions of luaunbound and libunbound
6 years ago
Kim Alvefur
57253b7f87
util.dependencies: Add awareness of luaunbound
6 years ago
Kim Alvefur
b96535b6ae
net.unbound: Async DNS resolver library based on libunbound via luaunbound
7 years ago
Kim Alvefur
49dd598e71
util.dns: Library for decoding DNS records
...
Imported from luaunbound-prosody 5f7c771138b1
7 years ago
Matthew Wild
558a365575
util.ringbuffer: Fix accidentally committed test change (thanks buildbot)
6 years ago
Matthew Wild
6daae1f629
net.dns: Reduce default timeout to 5s
...
Most healthy queries will return well within this time, and the
new retry logic should help spread the cost of additional retries.
6 years ago
Matthew Wild
5e744740f3
net.dns: Increase backoff delays
...
Not entirely happy with the overall logic here.
6 years ago
Matthew Wild
d080fee323
net.dns: Add jitter to spread queries and reduce failures due to congestion
6 years ago
Matthew Wild
3ff48b8386
net.dns: Fix timeout retry logic
...
On timeout the query would be resent twice - once within
servfail(), and again inside the timeout callback.
This commit moves all retry logic to servfail().
6 years ago
Matthew Wild
5f4fcad112
net.dns: Add some debug logging
6 years ago
Matthew Wild
f3add85e3c
util.ringbuffer: Add some additional asserts to tests
6 years ago
Matthew Wild
b9a670dace
util.ringbuffer: Ensure unsigned chars are always returned from :byte()
6 years ago
Kim Alvefur
f7614d491a
Merge 0.11->trunk
6 years ago
Matthew Wild
dd0274b8c7
util.ringbuffer: Add test for :discard()
6 years ago
Kim Alvefur
540be50a3c
net.http.server: Fix reporting of missing Host header
...
The "Missing or invalid 'Host' header" case was dead code previously
because `host` was always at least an empty string.
6 years ago
Kim Alvefur
48c9a60d19
net.http.server: Strip port from Host header in IPv6 friendly way ( fix #1302 )
...
E.g. given `[::1]:5280` it would previously result in only `[` instead
of the correct `[::1]`
6 years ago
Kim Alvefur
49663eba20
Merge 0.11->trunk
6 years ago
Kim Alvefur
bd36651336
util.startup: Remove duplicated initialization of logging ( fix #1527 )
6 years ago
Matthew Wild
073a654eff
mod_register_ibr: Add event for successful password reset
...
This is in addition to the existing event for password changes. This
one includes additional details about the actor, and only triggers
when the change is due to the account owner (presumably) resetting.
As example use case is to invalidate one-time password reset tokens.
6 years ago
Kim Alvefur
7b89ab9b86
net.connect: Remove TODO about use_ipv4/6 done in 3bfb20be844c
6 years ago
Kim Alvefur
bac049fb34
Merge 0.11->trunk
6 years ago
Kim Alvefur
28f0267645
mod_muc_mam: Don't strip MUC <x> tags, fix #1567
6 years ago
Kim Alvefur
93400f60fb
scansion tests: Enable mod_muc_mam during tests (expect breakage)
6 years ago
Kim Alvefur
44803031d0
MUC: Remove XEP-0091 Legacy Delayed Delivery from test
...
Long time Obsolete XEP.
The element is apparently not included when mod_muc_mam is enabled, and
deleting this seems like the sanity-preserving approach.
6 years ago
Kim Alvefur
15227ecbc6
util.adminstream: Prevent closure on read timeout
6 years ago
Matthew Wild
f480583839
mod_register_ibr: Allow registration to reset an existing account password if permitted by a plugin
6 years ago
Kim Alvefur
3077309ce7
util.prosodyctl.shell: Collect extra return values
...
Forgot in previous commit
6 years ago
Kim Alvefur
e2685cad2f
util.prosodyctl.shell: Handle argument parsing errors
...
While almost identical to the handling in util.startup, this seems more
appropriate. It would also simplify if shell-specific options need to be
handled in the future.
6 years ago
Kim Alvefur
2b2f9903ae
util.argparse: Move exiting and error to util.startup
...
It's not so nice to have a library that exits the entire application
from under you, so this and the error reporting belongs in util.startup.
The argparse code was originally in util.startup but moved out in
1196f1e8d178 but the error handling should have stayed.
6 years ago
Matthew Wild
7c632da844
util.gc: Linter fixes [luacheck]
6 years ago
Matthew Wild
758df8e14d
util.startup: Configure the GC on startup, using the config or built-in defaults
6 years ago
Matthew Wild
63ce191722
util.gc: New module for configuring the Lua garbage collector
6 years ago
Kim Alvefur
9ea29301ad
util.prosodyctl.check: Fix traceback by handling SRV '.' target to
...
The IDNA to-ASCII operation returns nil in this case, which causes an
error in net.dns
6 years ago
Matthew Wild
020454b7a3
util.async: Don't attempt to close thread if not created yet
6 years ago
Matthew Wild
3c53df7847
util.async: Call coroutine.close() on dead threads (Lua 5.4)
6 years ago
Kim Alvefur
efcf7cb7d4
mod_admin_shell: Update for async.wait_for rename
6 years ago
Matthew Wild
9691969c44
util.async: Rename wait -> wait_for (w/compat)
...
Agreed this name is clearer and wait_for(thing) reads well in code.
6 years ago
Matthew Wild
f2dbf36642
storage tests: Add tests for archive queries before/after specific ids
...
Also increased the size of the test data for easier debugging with more
complex tests.
6 years ago
Matthew Wild
0919bb30d3
mod_storage_internal, mod_storage_memory: Add support for query.before
...
Previously returned all results.
6 years ago
Matthew Wild
371d05a0c6
mod_storage_sql: Fix incorrect results when fetching items before specific archive id
...
Copy/paste error, introduced in deb68066c7aa
6 years ago
Kim Alvefur
9dfc424f2e
util.statsd: Update for API change
...
See change d75d805c852f to util.statistics
6 years ago
Boris Grozev
edd798dd98
mod_http: Support CIDR for trusted proxies.
6 years ago
Matthew Wild
9e0186b0ed
util.promise: Add all_settled, which follows semantics of allSettled from ES2020
6 years ago
Kim Alvefur
625ec0a93f
util-src: Use the luaL_pushfail API added in Lua 5.4 to highlight all failure conditions
...
Actually just an alias of pushnil, but it does make it more obvious
where the failure conditions are, which is good for readability.
6 years ago
Kim Alvefur
b50db46086
util.sslconfig: Process TLS 1.3-specific cipher list
...
Same way as with other cipher list options
6 years ago
Kim Alvefur
fb5e6faad6
core.certmanager: Add TODO about LuaSec issue
6 years ago
Kim Alvefur
ababc84794
mod_admin_shell: Fix display of units for some statistics
6 years ago