mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-08 19:48:04 +00:00
fix(server): remove global server timeouts
This commit is contained in:
parent
34f0f64d68
commit
82346b08da
9
main.go
9
main.go
|
@ -55,12 +55,9 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
server := &http.Server{
|
server := &http.Server{
|
||||||
Addr: *listenAddr,
|
Addr: *listenAddr,
|
||||||
Handler: tracing(nextRequestID)(logging(logger.Debug)(router)),
|
Handler: tracing(nextRequestID)(logging(logger.Debug)(router)),
|
||||||
ErrorLog: logger.Error,
|
ErrorLog: logger.Error,
|
||||||
ReadTimeout: 5 * time.Second,
|
|
||||||
WriteTimeout: 10 * time.Second,
|
|
||||||
IdleTimeout: 15 * time.Second,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the dispatcher.
|
// Start the dispatcher.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user