mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
parent
8969ddf4ff
commit
6836b8293d
1 changed files with 4 additions and 0 deletions
|
@ -136,6 +136,10 @@ module Puma
|
|||
raise "The minimum (#{min}) number of threads must be less than or equal to the max (#{max})"
|
||||
end
|
||||
|
||||
if max < 1
|
||||
raise "The maximum number of threads (#{max}) must be greater than 0"
|
||||
end
|
||||
|
||||
@options[:min_threads] = min
|
||||
@options[:max_threads] = max
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue