From a064a69050e8252fb31b021082cf92514c3c9df6 Mon Sep 17 00:00:00 2001 From: Min Min <37430175+jamsman94@users.noreply.github.com> Date: Thu, 18 Aug 2022 23:31:21 +0800 Subject: [PATCH] fix http server timeout for aslan (#1925) Signed-off-by: Min Min Signed-off-by: Min Min Co-authored-by: Min Min --- pkg/microservice/aslan/server/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/microservice/aslan/server/server.go b/pkg/microservice/aslan/server/server.go index 4cc730265a..93cb9b65b0 100644 --- a/pkg/microservice/aslan/server/server.go +++ b/pkg/microservice/aslan/server/server.go @@ -43,8 +43,8 @@ func Serve(ctx context.Context) error { engine := rest.NewEngine() server := &http.Server{ Addr: ":25000", - WriteTimeout: time.Second * 15, - ReadTimeout: time.Second * 15, + WriteTimeout: time.Second * 3600, + ReadTimeout: time.Second * 3600, IdleTimeout: time.Second * 5 * 60, Handler: engine, }