{"version":"2.1.328","anchor":"stream-idle-timeout-message-names-the-env-var-and-its-limits","canonical_anchor":"body-idle-timeout-can-be-set-to-a-raised-value","heading":"Stream idle timeout: raised limits and a message that says how to change them","tier":"notice","area":"Internals","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/stream-idle-timeout-message-names-the-env-var-and-its-limits","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Stream idle timeout: raised limits and a message that says how to change them\n\nThe idle timeout on streaming responses can now be raised, and its error now says how to lengthen it with CLAUDE_STREAM_IDLE_TIMEOUT_MS or remove it\n\n**What**\n\nWhen Claude answers, the reply arrives as a stream of small pieces. If no data arrives for too long, the request is stopped. Two things changed around this limit:\n\n- The network connection can now be given a raised, specific timeout from `raisedBodyIdleTimeoutMs` instead of only having its timeout turned off. The timeout is still turned off when the Anthropic API has its own idle watchdog, a separate check for silent streams.\n\n- The message shown when no data arrives now says it has waited more than a given number of minutes and suggests raising `CLAUDE_STREAM_IDLE_TIMEOUT_MS`, an environment variable you set in your shell. If you are already at the highest value, it says that is the longest `CLAUDE_STREAM_IDLE_TIMEOUT_MS` allows, and that `API_FORCE_IDLE_TIMEOUT=0` removes the limit.\n\n**Why**\n\nLong-running streams are less likely to be cut off by the default network timeout, and if you hit the limit, the message tells you which setting to change.\n\n- Area: Internals\n- Names: `CLAUDE_STREAM_IDLE_TIMEOUT_MS`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}