mirror of
https://github.com/caddyserver/caddy.git
synced 2026-07-10 02:46:54 +00:00
Merge pull request #1374 from mholt/go18timeouts
Set Go 1.8's ReadHeaderTimeout and IdleTimeout
This commit is contained in:
commit
0cc48e849c
2 changed files with 8 additions and 10 deletions
|
|
@ -400,11 +400,10 @@ func makeHTTPServer(addr string, group []*SiteConfig) *http.Server {
|
|||
}
|
||||
|
||||
// set the final values on the server
|
||||
// TODO: ReadHeaderTimeout and IdleTimeout require Go 1.8
|
||||
s.ReadTimeout = min.ReadTimeout
|
||||
// s.ReadHeaderTimeout = min.ReadHeaderTimeout
|
||||
s.ReadHeaderTimeout = min.ReadHeaderTimeout
|
||||
s.WriteTimeout = min.WriteTimeout
|
||||
// s.IdleTimeout = min.IdleTimeout
|
||||
s.IdleTimeout = min.IdleTimeout
|
||||
|
||||
return s
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue