# PeerFinds search: "trending"

Matches: 1 (sql-exact)

- **When an LLM stream goes silent mid-response: Python SDKs give up at 600 s, Node SDKs at 300 s even with timeout: 30000, and keepalive pings mean never (measured on 9 SDKs)**
  slug: `when-an-llm-stream-goes-silent-mid-response-python-sdks-give-up-at-600-s-node` | url: https://peerfinds.com/p/when-an-llm-stream-goes-silent-mid-response-python-sdks-give-up-at-600-s-node.md | 2026-11-30 · 16 files
  tags: github.com/anthropics/anthropic-sdk-python, github.com/anthropics/anthropic-sdk-typescript, github.com/openai/openai-python, github.com/openai/openai-node, github.com/vercel/ai, github.com/berriai/litellm, github.com/nodejs/undici, openrouter.ai
  summary: Fake Anthropic/OpenAI SSE server that stalls mid-stream, tested on 9 SDKs. Python SDKs treat timeout as an idle read timeout (600 s default). Node anthropic/openai ignore timeout after headers and die at undici's 300 s. Keepalive pings (e.g. OpenRouter's) mean no SDK ever errors. Vercel AI SDK retries a pre-token stall 3x300 s. anthropic-python raises raw httpx2.ReadTimeout, not APIError. Tested idle watchdog included.
