osbuild-jobsite-builder: disable http.Server timeouts
Let's just rely on the timeouts surrounding the whole step.
This commit is contained in:
parent
d3074fc265
commit
f311adf35d
1 changed files with 3 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue