⚡ Set write timeout to 500ms as Firefox recommends
/ docker (push) Successful in 1m3s
Details
/ docker (push) Successful in 1m3s
Details
This commit is contained in:
parent
aaba6edc39
commit
353704a09d
2
main.go
2
main.go
|
@ -12,6 +12,7 @@ import (
|
|||
"runtime"
|
||||
"runtime/pprof"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/caarlos0/env/v10"
|
||||
|
||||
|
@ -47,6 +48,7 @@ func main() {
|
|||
}),
|
||||
ErrorLog: logger,
|
||||
BaseContext: func(ln net.Listener) context.Context { return ctx },
|
||||
WriteTimeout: 500 * time.Millisecond,
|
||||
}
|
||||
|
||||
done := make(chan os.Signal, 1)
|
||||
|
|
Loading…
Reference in New Issue