1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Exit if max_threads == 0

Fixes #866
This commit is contained in:
Ed Robinson 2016-01-29 01:00:17 +00:00
parent 8969ddf4ff
commit 6836b8293d

View file

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