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

go-pkgz / requester / 37496470397
93%
main: 88%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: main
Ran 06 Oct 2026 04:33PM UTC
Jobs 1
Files 11
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 Oct 2026 09:14AM UTC coverage: 92.767% (+0.08%) from 92.687%
37496470397

Pull #16

github

umputun
fix: close retried responses in retry middleware

Retry kept a response it decided to retry in lastResponse and looped, and
nothing closed its body. Each retried response held one TCP connection and
its transport goroutines for the lifetime of the client.

RoundTrip closes the body of a response dropped in favor of another attempt,
for a retryable status and for a response returned together with an error.
The response of the last attempt is returned to the caller open, as before.

The body is closed without draining. A read in the middleware has no time
bound and would block the retry when an upstream sends headers and stalls
the body. The go1.27.1 transport drains on close within its own limits and
reuses the connection. The go1.25.0 transport does not, so there a retried
response costs a new connection, which is closed and no longer leaked.

Related to #15
Pull Request #16: fix: close retried responses in retry middleware

12 of 12 new or added lines in 1 file covered. (100.0%)

590 of 636 relevant lines covered (92.77%)

21.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37496470397.1 06 Oct 2026 04:33PM UTC 11
92.77
GitHub Action Run
Source Files on build 37496470397
  • Tree
  • List 11
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #16
  • PR Base - master (#32227807448)
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