cmd/routed: add idle timeouts

This commit is contained in:
Cadey Ratio 2018-01-20 08:59:16 -08:00
parent d41ed43455
commit 6d9c05778c
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,9 @@ func setupQuic(s *Server, scfg Config) {
TLSConfig: &tls.Config{
GetCertificate: s.GetCertificate,
},
IdleTimeout: 5 * time.Minute,
ReadHeaderTimeout: time.Second,
},
}
@ -87,6 +90,9 @@ func setupTLS(s *Server, scfg Config) {
TLSConfig: &tls.Config{
GetCertificate: s.GetCertificate,
},
IdleTimeout: 5 * time.Minute,
ReadHeaderTimeout: time.Second,
}
for {