Commit graph

5746 commits

Author SHA1 Message Date
Matthew Wild
4c0ea8780e mod_s2s: Lower log message to 'warn' level, standard for remotely-triggered protocol issues 2016-09-27 22:01:46 +01:00
Matthew Wild
9543307b58 prosodyctl: Fix copy/paste error in help text for deluser command 2016-09-27 22:01:13 +01:00
Kim Alvefur
c200735dba util.dependencies: Set global 'ssl' for compat with LuaSec 0.6 (fixes #749) 2016-09-23 16:09:46 +02:00
Kim Alvefur
1686ef5d53 mod_http: Allow configuring http parser size limits 2016-08-18 14:51:11 +02:00
Kim Alvefur
47fe58f5ca net.http.server: Expose way to set http server options 2016-08-18 14:50:39 +02:00
Kim Alvefur
4fe3ec81e1 net.http.parser: Allow limits to be configurable via options callback 2016-08-18 14:50:06 +02:00
Kim Alvefur
bdae29d754 net.http.parser: Add a limit on maximum buffer size, default to 20M 2016-08-18 14:48:42 +02:00
Kim Alvefur
b50763dcf6 net.http.parser: Add a limit on content length, default to 10M 2016-08-18 14:47:58 +02:00
Kim Alvefur
47ed467f4f net.http.parser: Buffer into a table to reduce GC pressure, collapse to string when needed (fixes #603) 2016-08-13 20:19:08 +02:00
Kim Alvefur
451855fecb sessionmanager: Make session.send() return true unless there really is an error [backported from 0.10] 2015-09-21 23:19:48 +02:00
Kim Alvefur
843d6bb629 mod_privacy: Fix selecting the top resource (fixes #694) 2016-06-22 22:22:29 +02:00
Kim Alvefur
2b1cedaf7a mod_presence: Re-probe for contacts presence after outgoing 'subscribed' (fixes #673) 2016-05-21 19:10:03 +02:00
Kim Alvefur
9f66da1df0 net.server_event: Check the buffer *length*, not the buffer itself (Fixes 100% cpu usage introduced in 65abd9d7bf88) 2016-04-19 18:58:30 +02:00
Kim Alvefur
376dab8b5e net.server_event: Return the correct value as timeout 2016-04-19 18:20:39 +02:00
Kim Alvefur
49aa55a51d net.server_event: Fix traceback if event re-added during starttls 2016-04-19 18:18:57 +02:00
Kim Alvefur
2bf3239f76 net.server_event: Re-add write event if writebuffer is non-empty after write (eg due to writes from ondrain callback) (fixes #661) 2016-04-19 17:24:00 +02:00
Kim Alvefur
5f4b783bf3 MUC: Accept missing form as "instant room" request (fixes #377) 2016-04-19 17:20:39 +02:00
Kim Alvefur
4308f867bb mod_c2s: Just destroy the session when it has no connection (see #641) 2016-04-03 15:18:21 +02:00
Kim Alvefur
ae72fdd667 mod_http_files: Preserve a trailing / in paths (fixes #639) 2016-03-03 15:31:46 +01:00
Kim Alvefur
e08144940d mod_http_files: Don't prepend / to path twice, sanitize path does this already 2016-03-03 15:30:00 +01:00
Kim Alvefur
cbe3f15ee4 mod_http_files: Fix traceback when serving a non-wildcard path (fixes #611) 2016-03-03 15:28:07 +01:00
Kim Alvefur
e83b7f442b net.server_event: Return true from conn:resume() to indicate success 2016-03-02 16:30:46 +01:00
Kim Alvefur
52f557dece net.server_event: Prevent resuming connections without readcallback, eg closed connections (fixes #590) 2016-03-02 16:30:05 +01:00
Kim Alvefur
89a474d458 mod_c2s: Remove connection object from session object when connection disconnected to prevent accidental use (see #590) 2016-03-02 16:28:11 +01:00
Kim Alvefur
fc2ad03510 util.datamanager: Unreference file handle after closing it to prevent trying to close it again (fixes #632) 2016-02-25 22:36:42 +01:00
Matthew Wild
c244999195 Added tag 0.9.10 for changeset 352270bc0439 2016-01-27 13:05:58 +00:00
Kim Alvefur
fe3e8ec805 Merge 2016-01-27 00:06:30 +01:00
Kim Alvefur
1875b4a83d mod_c2s, mod_s2s: Lower priority of session shutdown to negative, so that plugins hooking at the default priority run first (fixes #601) 2016-01-26 00:28:07 +01:00
Kim Alvefur
2ed7876bea server_select: Add logging of when servers are paused and resumed 2016-01-22 02:00:43 +01:00
Kim Alvefur
c46a125d73 server_select: Pause and mark server as full if accepting a client fails (fixes #597) 2016-01-22 02:00:27 +01:00
Kim Alvefur
c2f7450809 server_select: Retry accepting clients from full servers after 10s (matches libevent behaviour) 2016-01-22 01:59:25 +01:00
Kim Alvefur
a1560114d0 server_select: Keep track of which server listeners are full 2016-01-22 01:58:39 +01:00
Kim Alvefur
ecf5de4a4d net.dns: Remember query only after it was sent, in case it was not (fixes #598) 2016-01-21 22:26:46 +01:00
Kim Alvefur
ffb24222c3 Backout 63f5870f9afe, no longer needed since Windows is currently unsupported 2016-01-21 22:21:19 +01:00
Kim Alvefur
212db93800 mod_dialback: Follow XEP-0185 and use HMAC 2016-01-19 21:31:02 +01:00
Kim Alvefur
14d035cf43 core: Increase default read size to "all of it", in practice 8K (size of LuaSockets buffer) 2016-01-10 23:25:00 +01:00
Kim Alvefur
fa211588ac util.uuid: Open /dev/urandom read-only, make seed() a noop 2016-01-10 23:21:34 +01:00
Matthew Wild
224a98b2c6 Added tag 0.9.9 for changeset 7ec52755622f 2016-01-08 13:01:32 +00:00
Matthew Wild
76de073eea Backout 88d54bec26b7 prior to release, as it certainly requires more testing 2016-01-08 13:01:27 +00:00
Matthew Wild
cb1eeb2386 mod_http_files: Santize the path relative to our base URL before translating it to a filesystem path, fixes a relative path traversal vulnerability 2016-01-07 15:37:47 +00:00
Kim Alvefur
8a8f379272 util.uuid: Use /dev/urandom 2016-01-06 02:46:47 +01:00
Kim Alvefur
58885565fe net.dns: Allow a zone id in resolv.conf (eg like %eth0) 2016-01-04 15:46:06 +01:00
Kim Alvefur
e03302f412 util.ip: Support zone id syntax in IPv6 addresses 2016-01-04 17:47:40 +01:00
Florian Zeitz
4f709973f8 net.dns: Support IPv6 addresses in resolv.conf [Backported from 0.10] 2013-06-18 23:02:20 +02:00
Matthew Wild
2b64027204 util.ip: Fix protocol detection of IPv6 addresses beginning with : [Backported from 0.10] 2013-05-18 21:41:17 +01:00
Matthew Wild
2ab42c8dbf util.ip: Automatically determine protocol of IP address if none specified. Return error if invalid. [Backported from 0.10] 2013-05-17 14:52:52 +01:00
Matthew Wild
8178f7bd88 tests/test.lua: Fix fake module() function to prevent _M from being _G (test.lua's environment), which caused modules to break the sandbox when they set _M.* 2016-01-06 00:24:06 +00:00
Kim Alvefur
22f1422f51 certs/Makefile: Run key generation with a stricter umask (fixes a race condition) 2015-12-23 12:07:03 +01:00
Matthew Wild
18b6111e74 mod_admin_telnet: Backport 06696882d972 from 0.10 (this command greatly helps with debugging HTTP issues) 2015-12-22 14:15:09 +00:00
Matthew Wild
54e77b9859 MUC: Fix incorrect nesting of status codes when room config changes (fixes #579) 2015-12-16 16:41:48 +00:00