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

elixir-mint / mint / 227e72f1aac156e74c524955308a27f149252f51
91%

Build:
DEFAULT BRANCH: main
Ran 30 Nov 2026 02:27PM UTC
Jobs 1
Files 22
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

30 Nov 2026 02:25PM UTC coverage: 90.683% (+0.1%) from 90.543%
227e72f1aac156e74c524955308a27f149252f51

push

github

web-flow
Add manual refill of HTTP/2 stream receive windows (#550)

Mint refills a stream's receive window as soon as it parses a DATA
frame, so a process that owns the connection and hands body chunks to
other processes can't slow the server down for one request. Finch's
HTTP/2 pool does this: it calls stream/2 and sends {:data, ref, data}
to the caller, so a caller that handles chunks slower than the server
sends them gets an unbounded mailbox (sneako/finch#282). Not calling
stream/2 pauses every request on the connection.

With the new stream_window_refill: :manual connect option, Mint holds
back the data bytes of each DATA frame from the stream refill until the
caller releases them with Mint.HTTP2.refill_window/3. Padding counts as
released on receipt since the caller never sees it, and the connection
window keeps refilling on receipt, so a stalled request doesn't block
the others. Released bytes and padding are batched with the existing
:receive_window_update_threshold logic. Releasing data for a completed
or unknown request is a no-op, and releasing more than was received
returns a {:refill_exceeds_received, unreleased, size} error. If the
WINDOW_UPDATE can't be sent, the bytes stay unreleased so the caller
can release them again.

set_window_size/3 set the remaining window to the new peak instead of
adding the increment it sent, so growing a window mid-response made Mint
count the bytes received since the last refill as credit the server
still had. When that was more than :receive_window_update_threshold
(160 KB by default) the server ran out of window while Mint thought it
was above the threshold, and the request stalled. Unreleased bytes count
as received, so manual mode made this easier to hit.

40 of 41 new or added lines in 1 file covered. (97.56%)

1898 of 2093 relevant lines covered (90.68%)

728.65 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.89
0.03% lib/mint/http2.ex
Jobs
ID Job ID Ran Files Coverage
1 227e72f1aac156e74c524955308a27f149252f51.1 30 Nov 2026 02:27PM UTC 22
90.68
GitHub Action Run
Source Files on build 227e72f1aac156e74c524955308a27f149252f51
  • Tree
  • List 22
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 227e72f1 on github
  • Prev Build on main (#45702497...)
  • Next Build on main (#E4CCC06F...)
  • Delete
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