Skip to content

v0.5.9

Choose a tag to compare

@kaitk kaitk released this 24 Oct 05:57
· 71 commits to main since this release

A smaller worker, timers on time, and WebSockets up to max_conns. Goose v2026.3,
goose-hash v0.0.4, goose-tls v0.0.5, and goose-compress v0.1.4.

Changed:

  • The loops' timers fall due by the precise monotonic clock on Linux and macOS, not
    the coarse one, which is up to a scheduler tick old: /delay/10 at 64 connections
    answered in 12.2 ms, and now in 10.2 ms
    (decisions).
  • A timer table adds its cells as timers need them, up to its capacity, rather than
    writing every cell at open, and a box's table of live keys is left as calloc
    zeroed it. A worker with max_waiting at max_conns, 16,384, held about 0.8 MiB
    before its first wait; now it holds what its waits use.
  • Config.ring_buffers is 64, down from 256: io_uring writes every provided buffer
    in turn, so each worker held 1 MiB of them at any load, and 64 serve as fast on
    Linux (decisions). On Windows, IOCP
    serves 1 to 7% fewer requests a second with 64; a program there that wants them
    back sets ring_buffers: 256.
  • A WebSocket is promised bytes of the gather budget only while it holds part of a
    message, a message in fragments or a frame split across reads, not from its upgrade
    on. Idle connections and messages that arrive whole cost no budget, so a worker holds
    as many WebSockets as max_conns allows, where the defaults stopped it at 1,021.
    ws_upgrade no longer answers 503; a message the budget can't hold closes its
    connection with 1013 (Try Again Later)
    (decisions).

Removed:

  • http::ws_admit. A program that called it before ws_switch drops the call; its
    WebSockets are then promised their bytes as ws_upgrade's are.