diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-10-18 11:21:13 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-18 11:35:43 +0000 |
commit | fe6358be43e54d91c2beb9b52ced0437ad45f913 (patch) | |
tree | b5ab71ae89d1d7b60037bf43950f0910384d2517 /lib/yahns/config.rb | |
parent | 94acc35b6bc42ca02033d111534b6f8135a724eb (diff) | |
download | yahns-fe6358be43e54d91c2beb9b52ced0437ad45f913.tar.gz |
This is rarely-called code, but we need to be sure we can expire clients correctly when thresholds are reached. We also correctly handle negative values of the client_expire_threshold directive.
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r-- | lib/yahns/config.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb index 1d4d110..d38c090 100644 --- a/lib/yahns/config.rb +++ b/lib/yahns/config.rb @@ -225,7 +225,6 @@ class Yahns::Config # :nodoc: # global def client_expire_threshold(val) var = _check_in_block(nil, :client_expire_threshold) - val > 0 or raise ArgumentError, "#{var} must be > 0" case val when Float val <= 1.0 or raise ArgumentError, "#{var} must be <= 1.0 if a ratio" |