mirror of
https://github.com/lightninglabs/aperture.git
synced 2026-02-04 00:54:35 +01:00
aperture: start setting default values for the http timeout configs
In this commit, we start to set default values for the HTTP timeout config values. Otherwise, it's possible that TCP connections will never be closed, causing them to stack up over time, eventually consuming a lot of memory.
This commit is contained in:
@@ -379,9 +379,9 @@ func (a *Aperture) Start(errChan chan error) error {
|
||||
a.httpsServer = &http.Server{
|
||||
Addr: a.cfg.ListenAddr,
|
||||
Handler: handler,
|
||||
IdleTimeout: 0,
|
||||
ReadTimeout: 0,
|
||||
WriteTimeout: 0,
|
||||
IdleTimeout: time.Minute * 2,
|
||||
ReadTimeout: time.Second * 15,
|
||||
WriteTimeout: time.Second * 30,
|
||||
}
|
||||
|
||||
// Create TLS configuration by either creating new self-signed certs or
|
||||
|
||||
Reference in New Issue
Block a user