Skip to content

0.7.0

Latest

Choose a tag to compare

@zystem zystem released this 19 Nov 20:02
· 2 commits to main since this release
v0.7.0
5f11ab4

Added

  • A coverage-guided fuzzer, tools/libfuzz.nim (libFuzzer, built with clang, AddressSanitizer and UBSan; tools/libfuzz.sh TARGET [SECONDS]), over the seven targets of tools/fuzz.nim: gRPC framing, gzip, three Protobuf message types, the HTTP/2 server session and, new, the HTTP/2 client session (what a server may send to a client with a call open and maxHeaderListBytes set). The targets and the seeds moved to tools/fuzztargets.nim, shared by both. The weekly fuzz.yml runs it once per target and keeps the corpus in the cache. Run on 2026-11-18, 30 s per target on a development machine (the client session on 2026-11-19, 40 s): no finding. It instruments our code only; nghttp2 and zlib are linked as built.
  • ClientLimits for dial and dialAsync (blocking and chronos): handshakeTimeoutMs (20 s by default) closes a connection whose server accepted the TCP connection and does not finish TLS and send its first SETTINGS (before, a call with no deadline waited for ever); maxHeaderListBytes (64 KiB by default) resets a call whose response headers or trailers weigh more. tests/tclientlimits.nim.

Fixed

  • A stream that nghttp2 reset while the session framed the RST_STREAM (a callback that fails, on a connection with nothing more to read) was reported closed only when the next bytes arrived, so a call could wait for ever. The reader looks at the session's events again after it has queued the output, on both adapters.

Changed

  • The weekly soak test fails over 34 KiB per held connection (plain) and 96 KiB (TLS), from 60 and 100: the measured figures are 28 and 86 KiB since the stream tables were made small, and a regression of 10 KiB is now seen. docs/async.md gave about 75 KiB for TLS; the soak runs had always measured 96, and it is 86 now.
  • Less memory per connection on the chronos server: the tables of open streams start with 4 slots instead of 64. A server with 1,000 connections, each with a call open, holds 30 MiB instead of 40 (38 KiB to 28 KiB per connection; 5,000: 142 MiB instead of 191). Measured on 2026-11-18, plain HTTP/2; TLS not measured.

Upgrade notes: docs/upgrading.md (section 0.7.0).