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

emqx / esockd / 580
67%
master: 67%

Build:
Build:
LAST BUILD BRANCH: feat/conn-rate-token-refund
DEFAULT BRANCH: master
Ran 20 Aug 2026 01:40PM UTC
Jobs 3
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

20 Aug 2026 01:27PM UTC coverage: 67.861%. First build
580

Pull #225

github

terry-xiaoyu
fix: drain stale countdown ticks before re-arming a dead timer

Address review feedback on #225:

- when the countdown timer is found dead, drain the {timeout, _, countdown}
  messages already in the mailbox before re-arming: a leaked tick that is
  processed in the window right after the re-armed timer has fired (e.g. a
  1ms tick) but before its own message is handled would see the timer as
  dead again, arm yet another one and drop the real tick, delaying every
  bucket's refill. Consuming the whole batch up front keeps a single re-arm
  from being followed by such a cascade.
- correct the doc comments: arm_countdown_timer/2 arms no NEW timer while
  no buckets exist (a still-running one is left to wind down after the last
  delete), and ensure_countdown_timer/1 is not the endpoint for the
  countdown tick, which recomputes the schedule and arms the next timer
  directly.

Tests: inject a burst of stale countdown ticks against a dead timer and
verify the limiter re-arms once and buckets keep refilling on cadence.
Pull Request #225: fix: verify countdown timer liveness and re-arm it if dead

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

720 of 1061 relevant lines covered (67.86%)

205.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 580.1 20 Aug 2026 01:40PM UTC 22
67.67
GitHub Action Run
2 580.2 20 Aug 2026 01:40PM UTC 22
67.58
GitHub Action Run
3 580.3 20 Aug 2026 01:41PM UTC 22
67.64
GitHub Action Run
Source Files on build 580
  • Tree
  • List 22
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #225
  • Next Build on (#582)
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