diff --git a/cmd/server/main.go b/cmd/server/main.go index 0f3c5dd..4e1a682 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -164,7 +164,10 @@ func main() { Handler: handler, ReadTimeout: 10 * time.Second, WriteTimeout: 30 * time.Second, - IdleTimeout: 60 * time.Second, + // Above orca-proxy's upstream pool idle timeout (90 s): with a shorter + // value the proxy reuses connections the server is closing and answers + // 502 "connection closed before message completed". + IdleTimeout: 120 * time.Second, } ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)