Software / code / prosody
Diff
net/websocket/frames.lua @ 11107:ddd0007e0f1b 0.11
mod_websocket: Switch partial frame buffering to util.dbuffer
This improves performance and enforces stanza size limits earlier
in the pipeline.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 17 Sep 2020 13:04:46 +0100 |
| parent | 11106:76f46c2579a2 |
| child | 11112:bcc701377fe4 |
line wrap: on
line diff
--- a/net/websocket/frames.lua Thu Sep 17 13:00:19 2020 +0100 +++ b/net/websocket/frames.lua Thu Sep 17 13:04:46 2020 +0100 @@ -20,8 +20,8 @@ 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;