aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add Lua 5.5 support (#473)Caleb Maclennan3 days1-0/+1
|
* chore(docs): Backfill changelog entries for merged PRs and assorted commitsCaleb Maclennan3 days1-0/+17
|
* feat(http/ftp/smtp): implement max size checksThijs Schreijer5 days1-0/+1
| | | | | fixes unbounded reads when using the "*l" pattern. Typically on headers and other control lines.
* feat(receive): add maxsize argument to bound memory usageThijs Schreijer2026-07-301-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | client:receive("*l") and receive("*a") are unbounded: a peer that never sends a newline, or never closes, makes LuaSocket buffer until the process runs out of memory (e.g. src/http.lua reading response headers in a loop). Add an optional maxsize argument that caps the payload a single call may accumulate, including prefix. - Hoist all argument validation ahead of timeout_markstart() so bad calls (maxsize < 1, #prefix >= maxsize, numeric pattern > maxsize) raise before any I/O and leave the socket untouched. - recvline/recvall take a budget and return a new internal BUF_OVERSIZED code, surfaced to Lua as the "oversized" error alongside "timeout"/"closed", with the partial held in the 3rd return value. - recvraw is left untouched: argument checks make the cap unreachable for numeric patterns. - Preserve three invariants: a timeout partial is always shorter than maxsize (safe to retry as prefix), completion beats the cap for *a, and no bytes are lost or skipped on overflow. - tcp.c, unixstream.c and serial.c all share this code path unchanged. Adds test coverage (argument errors, *l/*a boundaries, timeout/close at the cap, the drain idiom, numeric patterns, unix-stream mirror) and documents the new argument, error, and recovery idioms in docs/tcp.html.
* chore: Release v3.1.0v3.1.0Caleb Maclennan2022-07-271-0/+7
|
* chore: Release v3.0.0v3.0.0Caleb Maclennan2022-03-251-1/+1
|
* chore: Draft v3 release notesCaleb Maclennan2022-03-251-0/+23
|
* chore: Refactor existing news file as a changelogCaleb Maclennan2022-03-251-0/+35