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