mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Prevent short term thread churn
This commit is contained in:
parent
5fdf337790
commit
8b12efab10
2 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ module Puma
|
|||
|
||||
@min_threads = 0
|
||||
@max_threads = 16
|
||||
@auto_trim_time = 1
|
||||
@auto_trim_time = 30
|
||||
@reaping_time = 1
|
||||
|
||||
@thread = nil
|
||||
|
|
|
@ -209,7 +209,7 @@ module Puma
|
|||
end
|
||||
end
|
||||
|
||||
def auto_trim!(timeout=5)
|
||||
def auto_trim!(timeout=30)
|
||||
@auto_trim = AutoTrim.new(self, timeout)
|
||||
@auto_trim.start!
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue