about summary refs log tree commit diff stats
path: root/internal/server/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/server.go')
-rw-r--r--internal/server/server.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index 044b64f..f922f6d 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -218,8 +218,11 @@ func New(runtimeConfig *Config) (*Server, error) {
 
 	return &Server{
 		Server: &http.Server{
+			ReadHeaderTimeout: 10 * time.Second,
+			ReadTimeout:       1 * time.Minute,
+			WriteTimeout:      2 * time.Minute,
+			IdleTimeout:       10 * time.Minute,
 			Addr:              listenAddress,
-			ReadHeaderTimeout: 1 * time.Minute,
 			Handler: http.MaxBytesHandler(h2c.NewHandler(
 				top,
 				&http2.Server{