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

stacklok / toolhive / 21403491932
60%

Build:
DEFAULT BRANCH: main
Ran 27 Jan 2026 03:44PM UTC
Jobs 1
Files 476
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

27 Jan 2026 03:36PM UTC coverage: 60.163% (+0.03%) from 60.135%
21403491932

push

github

web-flow
fix: improve stability of remote MCP server connections (#3417)

* fix: improve stability of remote MCP server connections

This PR addresses two issues that cause remote MCP servers (like Datadog
and Glean) to fail after laptop sleep/wake cycles:

1. Port conflicts after unclean shutdown:
   - After laptop sleep, zombie processes may hold ports without releasing them
   - Added SO_REUSEADDR socket option to allow port reuse
   - Applied to both transparent and httpsse proxies

2. Panic from duplicate WriteHeader calls:
   - The telemetry middleware's responseWriter could call WriteHeader twice
   - This causes 'http: superfluous response.WriteHeader' panics
   - Added headerWritten guard to prevent duplicate calls

Tested with Datadog and Glean MCP servers through multiple sleep/wake cycles.

* fix(lint): rename unused parameters to _ in ListenConfig.Control

Signed-off-by: Frederic Le Feurmou <flfeurmou@indeed.com>

* fix(build): extract ListenConfig to platform-specific files for Windows support

Signed-off-by: Frederic Le Feurmou <flfeurmou@indeed.com>

* fix(license): add SPDX headers to new files

Signed-off-by: Frederic Le Feurmou <flfeurmou@indeed.com>

* fix(lint): add package comments

Signed-off-by: Frederic Le Feurmou <flfeurmou@indeed.com>

* adds test coverage and update Write to handle headerWritten flag

* fix formatting

---------

Signed-off-by: Frederic Le Feurmou <flfeurmou@indeed.com>
Co-authored-by: amirejaz <amir@stacklok.com>

24 of 26 new or added lines in 4 files covered. (92.31%)

2 existing lines in 1 file now uncovered.

38357 of 63755 relevant lines covered (60.16%)

77.59 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
80.0
pkg/transport/proxy/socket/socket_unix.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
82.83
-0.26% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 21403491932.1 27 Jan 2026 03:44PM UTC 476
60.16
GitHub Action Run
Source Files on build 21403491932
  • Tree
  • List 476
  • Changed 8
  • Source Changed 3
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21403491932
  • dd51402d on github
  • Prev Build on main (#21396017644)
  • Next Build on main (#21403741296)
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