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

nats-io / nats.go / 23549883071 / 1
86%
main: 86%

Build:
DEFAULT BRANCH: main
Ran 25 Mar 2026 03:47PM UTC
Files 37
Run time 4s
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.1

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>

14581 of 17067 relevant lines covered (85.43%)

31532.78 hits per line

Source Files on job 23549883071.1
  • Tree
  • List 37
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 23549883071
  • 72397226 on github
  • Prev Job for on main (#23545171746.1)
  • Next Job for on main (#23550798690.1)
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