ssetest

package
v5.52.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ssetest serves the frame that held an MCP call on a reused HTTP/1 connection for the idle connection's 90s under go1.27.1's net/http (Go issue 81404): an SSE body closed while its reader is blocked in Read, with the stream ending inside the transport's post-close drain. The clients built on mcp-go use it to prove their calls return at once.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHoldingServer

func NewHoldingServer(t *testing.T) string

NewHoldingServer starts a streamable HTTP MCP server and returns its URL. It answers every request at once, except that tools/call answers on an SSE stream it keeps open until the client closes that stream's body: the stream then ends inside the transport's post-close drain, while the client's reader is blocked in Read. One tools/call per server.

It replaces http.DefaultTransport, which mcp-go's and muster's clients build on, for the rest of the test with a keep-alive transport that drives that interleaving, so a test using it must not run in parallel and must build its client after the call.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL