mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
lnd: add http header timeout to config
This commit is contained in:
4
lnd.go
4
lnd.go
@@ -214,7 +214,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,
|
||||
pprofServer := &http.Server{
|
||||
Addr: cfg.Profile,
|
||||
Handler: pprofMux,
|
||||
ReadHeaderTimeout: 5 * time.Second,
|
||||
ReadHeaderTimeout: cfg.HTTPHeaderTimeout,
|
||||
}
|
||||
|
||||
// Shut the server down when lnd is shutting down.
|
||||
@@ -271,6 +271,8 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,
|
||||
LetsEncryptListen: cfg.LetsEncryptListen,
|
||||
|
||||
DisableRestTLS: cfg.DisableRestTLS,
|
||||
|
||||
HTTPHeaderTimeout: cfg.HTTPHeaderTimeout,
|
||||
}
|
||||
tlsManager := NewTLSManager(tlsManagerCfg)
|
||||
serverOpts, restDialOpts, restListen, cleanUp,
|
||||
|
Reference in New Issue
Block a user