{"version":"2.1.274","anchor":"claude-gateway-gets-graceful-shutdown-on-sigtermsigint","canonical_anchor":"claude-gateway-gets-graceful-shutdown-on-sigtermsigint","heading":"claude gateway gets graceful shutdown on SIGTERM\/SIGINT","tier":"use","area":"Gateway","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274\/e\/claude-gateway-gets-graceful-shutdown-on-sigtermsigint","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274","markdown":"### claude gateway gets graceful shutdown on SIGTERM\/SIGINT\n\nclaude gateway now shuts down gracefully on SIGTERM\/SIGINT instead of exiting abruptly\n\n**What**\n\nThe `claude gateway` command now installs signal handlers for SIGTERM and SIGINT (the standard shutdown and interrupt signals). On receiving one, it stops accepting new connections and drains any in-flight requests, waiting up to `CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS` (default 25000ms) plus a 3-second grace buffer before exiting. If a second signal arrives while shutting down, the gateway force-closes and exits immediately.\n\n**Why**\n\nThis lets requests already in progress finish cleanly when the gateway is stopped or restarted, instead of being cut off mid-flight, while still allowing an impatient operator to force an immediate exit.\n\n- Area: Gateway\n- Names: `CLAUDE_GATEWAY_DRAIN_TIMEOUT_MS`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5"}