Turbo is a framework built for LuaJIT 2 to simplify the task of building fast and scalable network applications. It uses a event-driven, non-blocking, no thread design to deliver excellent performance and minimal footprint to high-load applications while also providing excellent support for embedded uses.
In websocket api, if payload>=126 then payload length is incorrectly computed.
Stems from the lines 212-213 in websocket.lua:
in function "_frame_len_16(data)", data is string type so;
ffi.cast("uint16_t", data) casts data's address instead of the value pointed that address.
Have not tested but the same should be true for the following function "_frame_len_64(data)"
In websocket api, if payload>=126 then payload length is incorrectly computed. Stems from the lines 212-213 in websocket.lua: in function "_frame_len_16(data)", data is string type so; ffi.cast("uint16_t", data) casts data's address instead of the value pointed that address.
Have not tested but the same should be true for the following function "_frame_len_64(data)"