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

nats-io / nats.go / 15780367894
85%

Build:
DEFAULT BRANCH: main
Ran 20 Jun 2025 01:50PM UTC
Jobs 1
Files 36
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 Jun 2025 01:44PM UTC coverage: 84.76%. First build
15780367894

push

github

web-flow
[FIXED] Consumer.Next() hangs after connection is closed (#1883)

* [FIXED] JetStream consumer hanging after connection closure

Fixes #1875

JetStream consumer operations would hang indefinitely after server
shutdown or connection closure.

Changes:
- Fixed core NATS closed handler bug for ChanSubscription and SyncSubscription
- Added ErrConnectionClosed error for better error context
- Enhanced Consume() to report connection closure via ConsumeErrHandler
- Improved Next() to wrap ErrMsgIteratorClosed with ErrConnectionClosed

Both Messages().Next() and consumer.Consume() now properly handle connection
closure and provide appropriate error reporting to applications.

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>

* Fix consume not sending conn closed error, improve tests

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>

---------

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>

31 of 33 new or added lines in 3 files covered. (93.94%)

13726 of 16194 relevant lines covered (84.76%)

31424.13 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
88.78
-11.22% jetstream/pull.go
Jobs
ID Job ID Ran Files Coverage
1 15780367894.1 20 Jun 2025 01:50PM UTC 36
84.76
GitHub Action Run
Source Files on build 15780367894
  • Tree
  • List 36
  • Changed 6
  • Source Changed 4
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15780367894
  • 08798499 on github
  • Prev Build on main (#15412263804)
  • Next Build on main (#15817725456)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc