From f311adf35d6d8fe65c43333829cf26550602ba4d Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Thu, 21 Mar 2024 16:47:57 +0100 Subject: [PATCH] osbuild-jobsite-builder: disable http.Server timeouts Let's just rely on the timeouts surrounding the whole step. --- cmd/osbuild-jobsite-builder/main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cmd/osbuild-jobsite-builder/main.go b/cmd/osbuild-jobsite-builder/main.go index 11634ff948..721f2f669a 100644 --- a/cmd/osbuild-jobsite-builder/main.go +++ b/cmd/osbuild-jobsite-builder/main.go @@ -423,13 +423,10 @@ func (builder *Builder) Serve() error { mux.HandleFunc("/export", builder.RegisterHandler(builder.HandleExport)) + /* #nosec G112 */ builder.net = &http.Server{ - ReadTimeout: 1 * time.Second, - WriteTimeout: 1800 * time.Second, - IdleTimeout: 30 * time.Second, - ReadHeaderTimeout: 1 * time.Second, - Addr: fmt.Sprintf("%s:%d", builder.Host, builder.Port), - Handler: mux, + Addr: fmt.Sprintf("%s:%d", builder.Host, builder.Port), + Handler: mux, } return builder.net.ListenAndServe()