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

stacklok / toolhive / 23235298350
64%

Build:
DEFAULT BRANCH: main
Ran 18 Mar 2026 08:19AM UTC
Jobs 1
Files 565
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

18 Mar 2026 08:15AM UTC coverage: 64.591% (-0.1%) from 64.695%
23235298350

push

github

web-flow
fix(vmcp): exempt SSE connections from WriteTimeout to prevent drops (#4167)

fix(vmcp): remove WriteTimeout to prevent SSE connection drops

Go's http.Server.WriteTimeout sets an absolute deadline on the entire
response duration. For long-lived SSE connections used by the MCP
Streamable HTTP transport, this caused streams to be killed after 30s
regardless of write activity (see golang/go#16100).

Remove WriteTimeout from the http.Server config and replace it with a
writeTimeoutMiddleware that uses http.ResponseController.SetWriteDeadline
to apply a per-request 30s write deadline only to non-GET (non-SSE)
requests. GET requests remain exempt so SSE streams can stay open
indefinitely.

Tests added:
- Unit tests verifying SetWriteDeadline is called/not called by method
- Integration test over a real TCP connection confirming an SSE stream
  survives past the timeout without being cut

Fixes #3691

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

23 of 23 new or added lines in 2 files covered. (100.0%)

254 existing lines in 5 files now uncovered.

49402 of 76484 relevant lines covered (64.59%)

162.1 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
8
23.56
-4.6% pkg/client/manager.go
11
68.42
-14.47% pkg/client/discovery.go
14
74.44
-5.19% pkg/client/config.go
219
59.73
-18.88% pkg/vmcp/server/server.go
Jobs
ID Job ID Ran Files Coverage
1 23235298350.1 18 Mar 2026 08:19AM UTC 565
64.59
GitHub Action Run
Source Files on build 23235298350
  • Tree
  • List 565
  • Changed 8
  • Source Changed 1
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23235298350
  • 837906c9 on github
  • Prev Build on main (#23219845772)
  • Next Build on main (#23248391697)
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