Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Crystal Blog 2 min read Release mediumAdept

Crystal 1.22.3 is released!

Crystal 1.22.3 is a patch release of 14 changes from 4 contributors, focused on security fixes and regressions. Sockets now reject port numbers above 65535 instead of silently truncating them, for example binding 73616 as 8080. The HTTP parser now rejects invalid headers, chunk lines and Content-Length values that could cause request desync, and a `close` token in the Connection header always closes the connection. The release also fixes `IO::Delimited` matching after a fragmented delimiter and an `Enum.parse?` regression from 1.22.0 that could cause out-of-bounds writes.

Assumes: HTTP/1.1 message framing

Related posts

  • How recurring network maintenance exposed 6 bugs

    Jane Street Tech Blog hardMaster

    Recurring weekend network partitions caused Jane Street's Kafka relays and consumer-group monitors to segfault, leak hundreds of thousands of sockets, and crash under recovery-time TCP connection surges, and tracing them uncovered six layered bugs. Among them are an eleven-year-old glibc bug where a failed res_init leaves nscount nonzero with null nameserver pointers so the next gethostbyname segfaults in sock_eq, a UDP socket leak when bind fails with EADDRINUSE under ephemeral-port exhaustion, and a fourteen-year-old Async regression where Tcp.connect_sock's timeout no longer covers DNS resolution. The rest are a Kafka client retry loop that never aborts timed-out attempts, duplicated concurrent discovery lookups, and a job runner migration that cut file-descriptor limits eightfold. Each bug masked the next, and the glibc fix shipped upstream in 2.44.

  • Retrospective and Technical Details on the recent Firefox Outage

    Mozilla Hacks mediumAdept

    On January 13, 2022, Firefox hung worldwide for about two hours after Google Cloud silently made HTTP/3 the default on load balancers left at "Automatic", causing Telemetry connections to switch from HTTP/2 to HTTP/3. Telemetry's Rust code sent requests through the viaduct library, which lower-cased the Content-Length header. Necko's high-level API checked headers case-insensitively, but its HTTP/3 code looked them up case-sensitively, so it treated the request as complete with the body unsent and looped forever on the single socket thread, blocking all networking. Lessons include setting load balancer options explicitly instead of relying on defaults, and running system tests across HTTP versions and intermediate networking layers in CI.

  • nginx2root: Five new nginx vulnerabilities, and how Cloudflare protects origins from the worst of them

    Cloudflare mediumAdept

    nginx2root is five memory-corruption bugs in nginx (HTTP/2 flow-control integer overflow, plus use-after-frees in HTTP/2 and HTTP/3 upstream handling, the resolver with subrequests, and the mail proxy), paired with an unpatched Linux SCTP use-after-free that escalates a worker compromise to root, even from inside Docker. The most dangerous, CVE-2026-123007, needs only HTTP/2 enabled, affects every release since 1.9.5, and arises because WINDOW_UPDATE enforces the 2^31−1 cap while stream-cancel cleanup returns credit to the connection window unchecked. Origins reachable only through Cloudflare's HTTP proxy are shielded from the HTTP/2 and HTTP/3 bugs because client frames terminate at the edge, but the resolver, mail proxy, Spectrum and directly reachable origins are not. Patch to nginx 1.30.7/1.31.9 and restart, or disable http2/http3, use fixed upstreams, restrict mail listeners and block the SCTP module.

  • Bun v0.8.1

    Bun mediumAdept

    Bun v0.8.1 adds unix domain socket support to Bun.serve() via a new `unix` option and fixes a 2.8x request-body throughput regression from v0.8.0 (about 38.6k to 110k req/s). The regression came from microtasks not being drained after reading request bodies, which became unbalanced once v0.8.0 started draining HTTP-server microtasks per request. Other fixes cover reporting native memory for Headers, Blob and fetch() to the garbage collector, runtime inlining of statically failing require() calls that broke napi packages, a 24-byte metadata header leaking into inline sourcemaps under --inspect, stale package.json scripts in the binary lockfile, and node:http proxy URLs.

  • Incident Report: June 6th, 2025

    Railway mediumAdept

    Database connection pressure at Railway tripped backend circuit breakers, which set off aggressive websocket reconnects from every connected client at once. Websocket handshakes sat outside the WAF policy, and a vendor contract change had removed permission to edit WAF rules, so the reconnect flood bypassed rate limiting. Timed-out clients fell back to the login page, which cleared sessions and sent enough traffic to GitHub OAuth to trigger a secondary rate limit, leaving users unable to log in for several hours. Fixes include client reconnect backoff, OAuth login rate-limit queues, websocket-aware rate-limiting rules, moving real-time reads to a read replica, WAF rules API testing, and showing login buttons only when the backend is ready.

The quest for software engineering knowledge.

Look:
Layout: