Skip to content
Snippets Groups Projects
Commit af7bf886 authored by ale's avatar ale
Browse files

Drop WriteTimeout on the default http.Server

It was acting as an upper limit for the request lifetime, which isn't
necessary on internal services.
parent 8379601a
Branches
No related tags found
No related merge requests found
...@@ -73,8 +73,7 @@ func (config *ServerConfig) buildHTTPServer(h http.Handler) (*http.Server, error ...@@ -73,8 +73,7 @@ func (config *ServerConfig) buildHTTPServer(h http.Handler) (*http.Server, error
// reconnections low. // reconnections low.
return &http.Server{ return &http.Server{
Handler: addDefaultHandlers(h), Handler: addDefaultHandlers(h),
ReadTimeout: 30 * time.Second, ReadHeaderTimeout: 30 * time.Second,
WriteTimeout: 30 * time.Second,
IdleTimeout: 600 * time.Second, IdleTimeout: 600 * time.Second,
TLSConfig: tlsConfig, TLSConfig: tlsConfig,
}, nil }, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment