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

stacklok / toolhive / 30347108009

28 Jul 2026 09:33AM UTC coverage: 69.723% (-0.004%) from 69.727%
30347108009

push

github

web-flow
Retry dual-era backend startup on a lost port-bind race (#6080)

allocateVMCPPort probes for a free port and closes its own listener
immediately, but the actual bind happens later, asynchronously, inside
the container Docker starts for the detached `thv run` process. Under
back-to-back workload churn another container can grab the same
ephemeral port first, failing with "address already in use" and
leaving the spec's BeforeEach to time out after 2 minutes.

Retry once with a freshly allocated port when this specific failure is
observed. Confirmed live under a 20-repeat stress run: the race still
fires (~1 in 12-13 attempts), but the retry now absorbs it instead of
failing the spec.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

81246 of 116527 relevant lines covered (69.72%)

98.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.97
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc