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

trickstercache / trickster / 27889223784
89%

Build:
DEFAULT BRANCH: main
Ran 21 Jun 2026 01:11AM UTC
Jobs 2
Files 308
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

21 Jun 2026 01:05AM UTC coverage: 89.115% (+0.002%) from 89.113%
27889223784

push

github

web-flow
fix: [listener] correct active-connections gauge under connections_limit (#1019)

* fix: [listener] correct active-connections gauge under connections_limit

Accept() only wrapped *net.TCPConn in observedConnection, so when frontend.connections_limit is set the netutil.LimitListener-wrapped conn (not a *net.TCPConn) was returned unwrapped and its Close never decremented trickster_proxy_active_connections -- the gauge climbed monotonically and ignored the configured limit. Accept now wraps every accepted conn except *tls.Conn (left bare so http.Server can negotiate HTTP/2 via ALPN).

observedConnection embeds net.Conn and decrements the gauge only on the first successful Close. net/http may close the same conn more than once; the repeat Close returns an error, which now guards the decrement (replacing the previous sync.Once).

Tests assert a repeated Close returns an error and the gauge nets a single decrement, and that Accept wraps a LimitListener conn.

Signed-off-by: thinker0 <thinker0@gmail.com>

* refactor: [proxy] adopt idiomatic error-first return for observedConnection.Close

Signed-off-by: thinker0 <thinker0@gmail.com>

---------

Signed-off-by: thinker0 <thinker0@gmail.com>

10 of 11 new or added lines in 1 file covered. (90.91%)

1 existing line in 1 file now uncovered.

20745 of 23279 relevant lines covered (89.11%)

1.55 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
82.48
-0.48% pkg/proxy/listener/listener.go

Coverage Regressions

Lines Coverage ∆ File
1
82.48
-0.48% pkg/proxy/listener/listener.go
Jobs
ID Job ID Ran Files Coverage
1 unit-Go-1.26 - 27889223784.1 21 Jun 2026 01:11AM UTC 304
84.13
GitHub Action Run
2 integration - 27889223784.2 21 Jun 2026 01:13AM UTC 301
52.95
GitHub Action Run
Source Files on build 27889223784
  • Tree
  • List 308
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 14b3c6c4 on github
  • Prev Build on main (#27880361012)
  • Next Build on main (#27907115766)
  • Delete
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