{"version":"2.1.317","anchor":"https-agent-keep-alive-guard-new-claude-code-disable-https","canonical_anchor":"https-agent-keep-alive-guard-new-claude-code-disable-https","heading":"Reused HTTPS connections are closed after server errors or TLS setting changes","tier":"notice","area":"Network","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317\/e\/https-agent-keep-alive-guard-new-claude-code-disable-https","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317","markdown":"### Reused HTTPS connections are closed after server errors or TLS setting changes\n\nClaude Code now drops kept-open connections after most 5xx server errors, and drops ones opened under different TLS settings\n\n**Unclear.** It is not clear which requests use this new connection handling, or what setting `CLAUDE_CODE_DISABLE_HTTPS_AGENT_KEEPING` does to it.\n\n**What**\n\nTo save time, Claude Code keeps secure (HTTPS) connections open and reuses them for later requests. New connection handling changes when those kept connections are thrown away.\n\n- Changed security settings: Claude Code notes which values of `NODE_TLS_REJECT_UNAUTHORIZED`, `BUN_TLS_REFUSE_DISTRUSTED_KEYS` and `CLAUDE_CODE_DISABLE_HTTPS_AGENT_KEEPING` were in force when each connection was opened. If those values have since changed and no request is waiting on that connection, Claude Code closes it.\n\n- Server errors: after a server answers with a 5xx error (a server-side failure), the connection is closed. Idle connections to the same host and port are closed too, so the next request opens a fresh connection. 501 and 529 are the exceptions.\n\nThis build also adds a way to reach an OpenTelemetry collector through a proxy tunnel. OpenTelemetry is a standard for sending usage and performance data. It also adds an error for when opening a connection takes too long.\n\n**Why**\n\nConnections are now reused differently after server errors, which can affect how reliably requests to the API go through.\n\n- Area: Network\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}