all scenarios

Connection hangs forever

hang-forever · Status & reliability

Endpoint (Streamable HTTP)
https://chaos-mcp.thomascdnns.com/s/hang-forever/mcp
On the wire — recorded from a real request
your clientchaos-mcp01initializePOST /s/hang-forever/mcp! no response after 3s — socket still open

Symptom

what you'll observe

Request never completes and never errors — the socket just stays open.

Cause

what this reproduces

Deadlock, an unbounded wait, or a lost goroutine that owns the response.

Fix

how you'd resolve it

Wrap handlers in a context deadline; fail fast instead of blocking indefinitely.

Try it with curl
bash
curl -sS -X POST \
  https://chaos-mcp.thomascdnns.com/s/hang-forever/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -d '
"jsonrpc""2.0"
"id"1
"method""initialize"
"params"
"protocolVersion""2024-11-05"
"capabilities"
"clientInfo""name""curl""version""1"

'