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

dunglas / mercure / 30168613872
88%
master: 93%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 25 Jul 2026 05:58PM UTC
Jobs 1
Files 35
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

25 Jul 2026 05:55PM UTC coverage: 88.374% (+0.1%) from 88.256%
30168613872

Pull #1319

github

Kévin Dunglas
fix: don't close a connection whose write deadline is near

disconnectionTime is the write deadline minus dispatchTimeout, and the
timer is armed with time.Until on it, so a value in the past fires on the
first select iteration and the connection closes right after the headers.

Two configurations reach it. A token expiring within dispatchTimeout (5s by
default) is accepted by authorize and then dropped instantly, so the
subscriber reconnects in a loop until the token really expires; short-lived
tokens are recommended, which makes this the normal case near the end of a
token's life. A dispatchTimeout larger than writeTimeout does the same to
every connection.

Keep the margin when it is available and fall back to the write deadline
itself otherwise, so the subscriber gets the time its token grants. A zero
deadline still means no deadline, and no timer is armed.
Pull Request #1319: fix: don't close a connection whose write deadline is near

14 of 0 new or added lines in 0 files covered. (NaN%)

29 existing lines in 1 file now uncovered.

2554 of 2890 relevant lines covered (88.37%)

110.8 hits per line

Coverage Regressions

Lines Coverage ∆ File
29
86.96
1.0% subscribe.go
Jobs
ID Job ID Ran Files Coverage
1 0 - 30168613872.1 25 Jul 2026 05:58PM UTC 35
88.37
GitHub Action Run
Source Files on build 30168613872
  • Tree
  • List 35
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1319
  • PR Base - main (#30115963922)
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