This repository was archived by the owner on Sep 24, 2026. It is now read-only.
Repository navigation
Releases
Releases · conorbronsdon/mojo-redis
0.2.0 — Mojo 1.0
- Builds on released Mojo 1.0. The pixi channel moved from
max-nightlytomaxand the dependency pin from>=1.0.0b3.dev…to
>=1.0,<2; CI installsmojo==1.0.0from PyPI instead of the nightly
index with--prerelease allow. The weekly drift check still runs
against the latest nightly, so the repo still reports when the language
moves under it. - 1.0 source fix (benchmark only).
_report'selapsed_ns
parameter is nowInt:perf_counter_ns()no longer returnsUInt,
sobench/bench_resp.mojofailed to compile. - README test counts corrected: 34 → 36 protocol tests, and the two
transport regressions CI also runs are now named. The 21 live-Redis
integration tests were re-run against a real server and pass.
Fixed
- Transport: suppress SIGPIPE on a dead connection. Writing to a
socket whose peer has closed deliveredSIGPIPE, terminating the whole
process (exit 141) beforesend()could returnEPIPE— so the
existing error path never ran. CPython avoids this by installing
SIG_IGNforSIGPIPE; a Mojo process does not. Fixed at the syscall
boundary, platform-gated:MSG_NOSIGNALon thesend()flags on Linux,
SO_NOSIGPIPEviasetsockopt(2)aftersocket()on macOS/BSD. A dead
peer now raises a catchableError. Regression covered by
test/test_connection.mojo(self-contained, no server; runs in CI). - Transport: close a poisoned connection instead of reusing it. After a
raised protocol/parse or transport error,is_open()still returned
True, so the byte stream stayed out of sync and every later command
misframed its reply.read_reply(and a failed_send_all) now close the
connection before propagating, so a subsequent command fails fast —
matching redis-py, which disconnects onInvalidResponse. Regression
covered bytest_poisoned_connection_is_closed. - Parser: bound reply size against memory-exhaustion DoS. A hostile
bulk-string length (e.g.$999999999999999999) or array element count
had no ceiling, so the transport wouldrecv/allocate unbounded. Added
caps — 512 MiB per bulk string (matching Redisproto-max-bulk-len),
1,048,576 elements per array, and a 528 MiB total unparsed-buffer
ceiling — each raising on exceed. Regression covered by
test_bulk_length_exceeds_cap_raises/test_array_count_exceeds_cap_raises. - Build:
pixi installfailed to resolve. Themojo = ">=1.0.0b3"
pin sorts after the dev nightlies (1.0.0b3.dev…), so the solver
found no candidates. Pinned to>=1.0.0b3.dev0,<2.