Skip to content
Snippets Groups Projects

fix for potential issue with resource abuse of http server

Merged Fabian Seidl requested to merge fix-faulty-http-server-configuration into master
1 file
+ 8
1
Compare changes
  • Side-by-side
  • Inline
+ 8
1
@@ -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
}
Loading