chore(lint): upgrade golangci-lint to v1.47.2
- Fix Slowloris attacks on HTTP servers - Force set default of 5 minutes for pprof read timeout - Change `ShutdownTimeout` to time.Duration since it cannot be set to 0
This commit is contained in:
@@ -23,7 +23,7 @@ func (l *Loop) Run(ctx context.Context, done chan<- struct{}) {
|
||||
settings := l.state.GetSettings()
|
||||
server := New(runCtx, settings.ListeningAddress, l.logger,
|
||||
*settings.Stealth, *settings.Log, *settings.User,
|
||||
*settings.Password)
|
||||
*settings.Password, settings.ReadHeaderTimeout, settings.ReadTimeout)
|
||||
|
||||
errorCh := make(chan error)
|
||||
go server.Run(runCtx, errorCh)
|
||||
|
||||
Reference in New Issue
Block a user