tenant-registry-prod /healthz answered 502 76 times between 2026-10-09 and 2026-10-12 ("connection closed before message completed"), with 0 restarts.
The server closed idle keep-alive connections after 60 s (IdleTimeout), while orca-proxy pools upstream connections for up to 90 s (crates/orca-proxy/src/backend_timeouts.rs, pool_idle_timeout(90s)). Between 60 and 90 s of idle time the proxy reuses a connection the server is closing, and the request fails with a 502. This affects every request through the proxy, not only /healthz.
Change
IdleTimeout 60 s → 120 s in cmd/server/main.go, above the proxy's pool timeout, with a comment explaining why.
Verification
go build ./..., gofmt clean.
After the stage deploy: no more 502s on registry-stage /healthz. Prod follows with the next promotion (needs the go).
Orca-side hardening (shorter pool idle or a retry for idempotent requests) is with the orca session.
## Why
tenant-registry-prod `/healthz` answered 502 76 times between 2026-10-09 and 2026-10-12 ("connection closed before message completed"), with 0 restarts.
The server closed idle keep-alive connections after 60 s (`IdleTimeout`), while orca-proxy pools upstream connections for up to 90 s (`crates/orca-proxy/src/backend_timeouts.rs`, `pool_idle_timeout(90s)`). Between 60 and 90 s of idle time the proxy reuses a connection the server is closing, and the request fails with a 502. This affects every request through the proxy, not only `/healthz`.
## Change
`IdleTimeout` 60 s → 120 s in `cmd/server/main.go`, above the proxy's pool timeout, with a comment explaining why.
## Verification
- `go build ./...`, `gofmt` clean.
- After the stage deploy: no more 502s on registry-stage `/healthz`. Prod follows with the next promotion (needs the go).
- Orca-side hardening (shorter pool idle or a retry for idempotent requests) is with the orca session.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
The server closed idle keep-alive connections after 60 s while orca-proxy
keeps upstream connections pooled for up to 90 s. A request sent on a
connection the server was just closing failed with "connection closed
before message completed" and the proxy answered 502: 76 times on
tenant-registry-prod /healthz between 2026-10-09 and 2026-10-12, without
restarts. IdleTimeout is now 120 s, above the proxy's pool timeout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
tenant-registry-prod
/healthzanswered 502 76 times between 2026-10-09 and 2026-10-12 ("connection closed before message completed"), with 0 restarts.The server closed idle keep-alive connections after 60 s (
IdleTimeout), while orca-proxy pools upstream connections for up to 90 s (crates/orca-proxy/src/backend_timeouts.rs,pool_idle_timeout(90s)). Between 60 and 90 s of idle time the proxy reuses a connection the server is closing, and the request fails with a 502. This affects every request through the proxy, not only/healthz.Change
IdleTimeout60 s → 120 s incmd/server/main.go, above the proxy's pool timeout, with a comment explaining why.Verification
go build ./...,gofmtclean./healthz. Prod follows with the next promotion (needs the go).🤖 Generated with Claude Code
https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
69b50b2fbdtod640c2f8c0