• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nbari / www / 42179085349
95%
master: 37%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 06 Nov 2026 07:11AM UTC
Jobs 1
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Nov 2026 07:10AM UTC coverage: 94.556% (+0.3%) from 94.303%
42179085349

Pull #14

github

nbari
Bound streaming memory and test the framing a reused connection exposes

Three gaps behind the 3.1.0 work, found by re-reading it rather than by
a failure.

The truncation fix exists because a short read on HTTP/2 produced a
clean END_STREAM with a silently truncated body, yet nothing in the
suite covered HTTP/2, pipelining or truncation. Those paths now have
deterministic tests: a unit test that polls a body, shrinks the file
underneath it and requires an error rather than a clean end, and wire
tests that pipeline inlined, streamed, empty and ranged responses down
one connection and assert no byte lands outside its own response. The
truncation test was mutation-checked: reverting the fix fails it.

Streaming memory had no ceiling. A response pins its chunk until the
client reads it, so a set of slow readers could hold memory in
proportion to their connection count: 1000 stalled 4 MiB responses
held 540 MiB, and 2000 held 1056 MiB. Bodies now share a 64 MiB
reservation and fall back to 16 KiB chunks past it, never waiting and
never failing, which brings those to 399 MiB and 674 MiB. Per stalled
connection that is 553 KiB falling to 343 KiB as load grows. The
remainder is hyper's per-connection state, not ours; capping
connections is the lever for that and is not attempted here.

The inline cap means a single-worker runtime never reads inline, which
was worth checking rather than assuming. Serving 1 KiB against 3.0.1:
1 CPU 27,853 -> 43,379 req/s, 2 CPUs 49,205 -> 111,737, 4 CPUs
81,974 -> 230,465. Small deployments keep the structural gain even
without the fast path. README now documents all of it.
Pull Request #14: Serve files without ServeDir: 1.2-2.7x over the Go implementation

630 of 672 new or added lines in 3 files covered. (93.75%)

1 existing line in 1 file now uncovered.

1980 of 2094 relevant lines covered (94.56%)

449.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
25
94.19
5.17% src/server/file_response.rs
17
92.77
-0.34% src/server/directory.rs

Coverage Regressions

Lines Coverage ∆ File
1
94.19
5.17% src/server/file_response.rs
Jobs
ID Job ID Ran Files Coverage
1 rust - 42179085349.1 06 Nov 2026 07:11AM UTC 14
94.56
GitHub Action Run
Source Files on build 42179085349
  • Tree
  • List 14
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42179085349
  • Pull Request #14
  • PR Base - main (#40644890817)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc