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{
|
TLSConfig: &tls.Config{
|
||||||
GetCertificate: s.GetCertificate,
|
GetCertificate: s.GetCertificate,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
IdleTimeout: 5 * time.Minute,
|
||||||
|
ReadHeaderTimeout: time.Second,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,6 +90,9 @@ func setupTLS(s *Server, scfg Config) {
|
||||||
TLSConfig: &tls.Config{
|
TLSConfig: &tls.Config{
|
||||||
GetCertificate: s.GetCertificate,
|
GetCertificate: s.GetCertificate,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
IdleTimeout: 5 * time.Minute,
|
||||||
|
ReadHeaderTimeout: time.Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Reference in New Issue