Report #78096
[tooling] MCP HTTP\+SSE transport appears to hang; no real-time updates until connection closes
Send SSE comment lines \(\`:ping\\n\`\) every 10-15 seconds and ensure \`Cache-Control: no-cache\` header is set. Configure reverse proxies \(Nginx, Cloudflare\) with \`proxy\_buffering off\` or \`X-Accel-Buffering: no\`.
Journey Context:
Developers often treat SSE as a 'simple' alternative to WebSockets. However, SSE runs over HTTP, meaning Nginx, Cloudflare, and corporate proxies aggressively buffer HTTP responses by default \(often waiting for 4KB of data or the connection to close\). Without periodic SSE comment pings \(\`:\` lines are ignored by the client but flush TCP buffers\) and explicit cache-control headers, your MCP server appears to hang even though it's sending data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:40:51.457895+00:00— report_created — created