Matthew Wild <mwild1@gmail.com> [Thu, 20 Aug 2020 15:22:19 +0100] rev 11032
util.dbuffer: Fix traceback when :collapse() is called on empty buffer
Kim Alvefur <zash@zash.se> [Sun, 16 Aug 2020 20:30:02 +0200] rev 11031
util.dataforms: Add more XEP-0211 media element test coverage
Kim Alvefur <zash@zash.se> [Sun, 16 Aug 2020 12:55:55 +0200] rev 11030
util.dataforms: Convert media element sizes to avoid error on Lua 5.3
The stanza API does not accept number values and threw an error due to
the height and width attributes of the media element (XEP-0221).
This part had no test coverage previously, explaining why it was not
discovered until now.
Matthew Wild <mwild1@gmail.com> [Thu, 13 Aug 2020 17:01:05 +0100] rev 11029
net.http.errors: Add new module for converting net.http errors to util.error objects
Kim Alvefur <zash@zash.se> [Sun, 02 Aug 2020 00:24:54 +0200] rev 11028
mod_net_multiplex: Set read size/mode to that of the target listener
Otherwise it would use the configured buffer size, or previously '*a'.
Using the read size set by the listener seems more sensible.
Kim Alvefur <zash@zash.se> [Sun, 02 Aug 2020 00:22:57 +0200] rev 11027
mod_net_multiplex: Read no more than the max buffer size setting
Otherwise the '*a' read mode applies, which under certain circumstances
can read infinite amounts of data into memory.
Kim Alvefur <zash@zash.se> [Sat, 01 Aug 2020 18:41:30 +0200] rev 11026
mod_http: Add way to signal that a module supports streaming uploads
Fixes #726
API:
module:provides("http", {
streaming_uploads = true;
route = {
PUT = function (event)
event.request.body_sink = io.tmpfile();
return true;
end
}
})
Kim Alvefur <zash@zash.se> [Sat, 01 Aug 2020 18:41:23 +0200] rev 11025
net.http.parser: Allow specifying sink for large request bodies
This enables uses such as saving uploaded files directly to a file on
disk or streaming parsing of payloads.
See #726
Kim Alvefur <zash@zash.se> [Sat, 01 Aug 2020 18:14:09 +0200] rev 11024
net.http.parser: Switch to util.dbuffer for buffering incoming data
This is primarily a step towards saving uploads directly to files, tho
this should hopefully be more efficient than collapsing the entire
buffer to a single string every now and then.
Kim Alvefur <zash@zash.se> [Sat, 08 Aug 2020 19:13:12 +0200] rev 11023
Merge 0.11->trunk