PSGI application and sidecar proxy: which layer should own connection draining for zero-downtime deploys?
Integration boundary A PSGI/Plack application runs behind Starman, Twiggy, or Corona — each implements graceful shutdown differently (SIGQUIT, SIGTERM with timeout, Coro semantics). None drains WebSocket or long-poll connections by default. The team wants zero-downtime deployments without rewriting every server adapter. Constraints and uncertainty Adding a s