From 5c95b4a7391d79b5c01d18471cd52459b6b4d021 Mon Sep 17 00:00:00 2001 From: Bryce Palmer Date: Wed, 10 Jan 2024 18:48:50 -0500 Subject: [PATCH] (bugfix): bump the catalogserver write timeout to 5 minutes (#223) to allow for fully writing large catalogs contents in the response Signed-off-by: everettraven --- cmd/manager/main.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/manager/main.go b/cmd/manager/main.go index 0a2646c3..5234587d 100644 --- a/cmd/manager/main.go +++ b/cmd/manager/main.go @@ -159,10 +159,12 @@ func main() { catalogServer := server.Server{ Kind: "catalogs", Server: &http.Server{ - Addr: catalogServerAddr, - Handler: catalogdmetrics.AddMetricsToHandler(localStorage.StorageServerHandler()), - ReadTimeout: 5 * time.Second, - WriteTimeout: 10 * time.Second, + Addr: catalogServerAddr, + Handler: catalogdmetrics.AddMetricsToHandler(localStorage.StorageServerHandler()), + ReadTimeout: 5 * time.Second, + // TODO: Revert this to 10 seconds if/when the API + // evolves to have significantly smaller responses + WriteTimeout: 5 * time.Minute, }, ShutdownTimeout: &shutdownTimeout, }