Skip to content
Snippets Groups Projects
Commit a1da63de authored by Fabian Seidl's avatar Fabian Seidl
Browse files

fix for potential issue with resource abuse of http server

See merge request !845
parent 9be001e5
No related branches found
No related tags found
1 merge request!845fix for potential issue with resource abuse of http server
Pipeline #189624 passed
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment