diff --git a/controller/http.go b/controller/http.go index 9270eebceb61ebeae7dcaa1b468f7f06e3b6f21b..c6d80518bcbf1b1492fc4c14468f5534083b7dad 100644 --- a/controller/http.go +++ b/controller/http.go @@ -88,7 +88,14 @@ func setupHttpServer() error { } // Set the HTTP server of core to the new server - c.httpServer = &http.Server{Addr: ":8080", Handler: mux} + c.httpServer = &http.Server{Addr: ":8080", + Handler: mux, + ReadHeaderTimeout: 10 * time.Second, + ReadTimeout: 20 * time.Second, + WriteTimeout: 20 * time.Second, + IdleTimeout: 60 * time.Second, + } + return nil }