diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-09-17 13:04:46 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-09-17 13:04:46 +0100 |
commit | 5a1c206eceafe544292059d3749ad033010af37f (patch) | |
tree | cdaad36e7fe037ca6bf26a2e1a2ca075d811fe74 /net/websocket/frames.lua | |
parent | 3989ff2ddcbccde2719e19cc4af9e223ba1e26b6 (diff) | |
download | prosody-5a1c206eceafe544292059d3749ad033010af37f.tar.gz prosody-5a1c206eceafe544292059d3749ad033010af37f.zip |
mod_websocket: Switch partial frame buffering to util.dbuffer
This improves performance and enforces stanza size limits earlier
in the pipeline.
Diffstat (limited to 'net/websocket/frames.lua')
-rw-r--r-- | net/websocket/frames.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/websocket/frames.lua b/net/websocket/frames.lua index e1b5527a..65f9122c 100644 --- a/net/websocket/frames.lua +++ b/net/websocket/frames.lua @@ -20,8 +20,8 @@ local unpack = table.unpack or unpack; -- luacheck: ignore 113 local t_concat = table.concat; local s_char= string.char; -local s_pack = string.pack; -local s_unpack = string.unpack; +local s_pack = string.pack; -- luacheck: ignore 143 +local s_unpack = string.unpack; -- luacheck: ignore 143 if not s_pack and softreq"struct" then s_pack = softreq"struct".pack; |