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

nats-io / nats.go / 23549883071
85%

Build:
DEFAULT BRANCH: main
Ran 25 Mar 2026 03:47PM UTC
Jobs 1
Files 37
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 Mar 2026 03:42PM UTC coverage: 85.434% (+0.02%) from 85.418%
23549883071

push

github

web-flow
[IMPROVED] Wrap EOF/connection reset errors with TLS context after handshake (#2031)

* Wrap EOF/connection reset errors with TLS context after handshake

When a TLS proxy (e.g. nginx with mTLS) completes the TLS handshake but
then closes the connection due to an untrusted client certificate, the
client would receive a bare "EOF" or "connection reset by peer" with no
indication that TLS was involved. This wraps such errors with context:

  "nats: connection closed by remote after TLS handshake: EOF"

The wrapped error preserves the original via %w for backwards
compatibility (errors.Is(err, io.EOF) still returns true).

Signed-off-by: Waldemar Quevedo <wally@nats.io>

* Wrap TLS errors in ErrTLS

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

---------

Signed-off-by: Waldemar Quevedo <wally@nats.io>
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Co-authored-by: Piotr Piotrowski <piotr@synadia.com>

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

8 existing lines in 3 files now uncovered.

14581 of 17067 relevant lines covered (85.43%)

31532.78 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
89.73
0.24% jetstream/publish.go
2
83.27
-0.08% js.go
4
89.48
0.01% nats.go
Jobs
ID Job ID Ran Files Coverage
1 23549883071.1 25 Mar 2026 03:47PM UTC 37
85.43
GitHub Action Run
Source Files on build 23549883071
  • Tree
  • List 37
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23549883071
  • 72397226 on github
  • Prev Build on main (#23545171746)
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