mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 14:23:25 +00:00
Reduce timeout value metrics server to 5 second
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
This commit is contained in:
@ -235,8 +235,8 @@ func runMetricsServer() {
|
||||
router.HandleFunc("/healthz", healthzHandler)
|
||||
|
||||
port := 8082
|
||||
readTimeout := time.Duration(30) * time.Second
|
||||
writeTimeout := time.Duration(30) * time.Second
|
||||
readTimeout := time.Duration(5) * time.Second
|
||||
writeTimeout := time.Duration(5) * time.Second
|
||||
|
||||
s := &http.Server{
|
||||
Addr: fmt.Sprintf(":%d", port),
|
||||
|
Reference in New Issue
Block a user