about summary refs log tree commit homepage
path: root/lib/yahns/config.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-10-18 11:21:13 +0000
committerEric Wong <normalperson@yhbt.net>2013-10-18 11:35:43 +0000
commitfe6358be43e54d91c2beb9b52ced0437ad45f913 (patch)
treeb5ab71ae89d1d7b60037bf43950f0910384d2517 /lib/yahns/config.rb
parent94acc35b6bc42ca02033d111534b6f8135a724eb (diff)
downloadyahns-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.rb1
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"