mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Check for stale workers and connections every 10 seconds instead of every second. This should reduce cleaners' overhead
This commit is contained in:
@@ -912,7 +912,7 @@ func (c *HostClient) connsCleaner() {
|
||||
if mustStop {
|
||||
break
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
time.Sleep(10 * time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ func (wp *workerPool) Start() {
|
||||
case <-stopCh:
|
||||
return
|
||||
default:
|
||||
time.Sleep(time.Second)
|
||||
time.Sleep(10 * time.Second)
|
||||
}
|
||||
wp.clean()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user