1
0
Fork 0
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:
Evan Phoenix 2016-09-05 16:41:46 -07:00
parent 5fdf337790
commit 8b12efab10
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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