cmd/routed: add idle timeouts
This commit is contained in:
parent
d41ed43455
commit
6d9c05778c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue