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

nats-io / nats-server / 22011611671
84%

Build:
DEFAULT BRANCH: main
Ran 14 Feb 2026 06:07AM UTC
Jobs 1
Files 61
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

13 Feb 2026 05:53PM UTC coverage: 84.7% (+0.04%) from 84.661%
22011611671

push

github

web-flow
Improved flow control for stream snapshots (#7828)

This PR improves the flow control for stream snapshots:

1. We will now keep a window of slots for in-flight chunks, rather than
counting totals and potentially dropping acks, but still targeting 8MB
in flight at any time
2. We will now wait for a chunk to be filled (or EOF from the
snapshotting goroutine) before sending it rather than opportunistically
sending smaller chunks, providing more stable throughput on the wire
3. Increase the amount of time that we can wait for acks from 2 seconds
to 5 seconds, to better cope with slow connections
4. Give up early in ack reply subscription handlers if we detect that
the process has failed

Signed-off-by: Neil Twigg <neil@nats.io>

74835 of 88353 relevant lines covered (84.7%)

325585.3 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
82.75
0.1% src/github.com/nats-io/nats-server/server/memstore.go
3
87.88
-0.24% src/github.com/nats-io/nats-server/server/auth.go
3
86.16
-0.14% src/github.com/nats-io/nats-server/server/events.go
3
83.25
0.56% src/github.com/nats-io/nats-server/server/filestore.go
4
87.09
-0.07% src/github.com/nats-io/nats-server/server/monitor.go
6
93.84
-0.16% src/github.com/nats-io/nats-server/server/gateway.go
8
79.39
0.04% src/github.com/nats-io/nats-server/server/opts.go
8
90.07
-0.03% src/github.com/nats-io/nats-server/server/server.go
22
91.79
-0.8% src/github.com/nats-io/nats-server/server/route.go
187
88.47
0.49% src/github.com/nats-io/nats-server/server/raft.go
243
88.35
0.2% src/github.com/nats-io/nats-server/server/consumer.go
317
73.85
-0.01% src/github.com/nats-io/nats-server/server/jetstream_api.go
406
86.01
0.04% src/github.com/nats-io/nats-server/server/stream.go
1070
82.29
-0.3% src/github.com/nats-io/nats-server/server/jetstream_cluster.go
Jobs
ID Job ID Ran Files Coverage
1 22011611671.1 14 Feb 2026 06:07AM UTC 61
84.7
GitHub Action Run
Source Files on build 22011611671
  • Tree
  • List 61
  • Changed 16
  • Source Changed 5
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22011611671
  • 7c38a319 on github
  • Prev Build on main (#21975509826)
  • Next Build on main (#22030152308)
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