about summary refs log tree commit homepage
path: root/lib/yahns/fdmap.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-05-12 00:49:56 +0000
committerEric Wong <e@80x24.org>2014-05-12 00:49:56 +0000
commit35a3db222b2670bd090ac74f563e7380590e7067 (patch)
tree6977be75c94894c9fd8581e1770a3877248cbe55 /lib/yahns/fdmap.rb
parent0c20f34c3d54e1c3d7b7a811c401e6858196e8a7 (diff)
downloadyahns-35a3db222b2670bd090ac74f563e7380590e7067.tar.gz
This quiets down our logs when acceptors do not die quickly
enough for us.
Diffstat (limited to 'lib/yahns/fdmap.rb')
-rw-r--r--lib/yahns/fdmap.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/yahns/fdmap.rb b/lib/yahns/fdmap.rb
index 5ba4399..bac327e 100644
--- a/lib/yahns/fdmap.rb
+++ b/lib/yahns/fdmap.rb
@@ -79,6 +79,7 @@ class Yahns::Fdmap # :nodoc:
   # We should not be calling this too frequently, it is expensive
   # This is called while @fdmap_mtx is held
   def __expire(timeout)
+    return if @count == 0
     nr = 0
     now = Time.now.to_f
     (now - @last_expire) >= 1.0 or return # don't expire too frequently