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

elixir-mint / mint / 541cc02c629dae1a25bc8ffc0cde6193a49cb1c4-PR-550
90%
main: 90%

Build:
Build:
LAST BUILD BRANCH: http2-manual-stream-window
DEFAULT BRANCH: main
Ran 17 Nov 2026 04:22PM 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

17 Nov 2026 04:19PM UTC coverage: 90.41% (+0.2%) from 90.239%
541cc02c629dae1a25bc8ffc0cde6193a49cb1c4-PR-550

Pull #550

github

ericmj
Add manual refill of HTTP/2 stream receive windows

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 is still
refilled right away 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 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.

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.
Pull Request #550: Add manual refill of HTTP/2 stream receive windows

35 of 36 new or added lines in 1 file covered. (97.22%)

1876 of 2075 relevant lines covered (90.41%)

730.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.47
0.25% lib/mint/http2.ex
Jobs
ID Job ID Ran Files Coverage
1 541cc02c629dae1a25bc8ffc0cde6193a49cb1c4-PR-550.1 17 Nov 2026 04:22PM UTC 22
90.41
GitHub Action Run
Source Files on build 541cc02c629dae1a25bc8ffc0cde6193a49cb1c4-PR-550
  • Tree
  • List 22
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #550
  • PR Base - main (#0C4D189F...)
  • 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