about summary refs log tree commit homepage
path: root/lib/yahns/acceptor.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2013-11-07 08:40:22 +0000
committerEric Wong <e@80x24.org>2013-11-07 08:43:44 +0000
commit07e5a1d7e8624e57d640af1d641c7ca51a948ecd (patch)
tree3ce37fe9a11da1b5fe87779364c6b9facfb7a001 /lib/yahns/acceptor.rb
parenta79a6d8775171ad5cceda9bb3a77946ba60e26ce (diff)
downloadyahns-07e5a1d7e8624e57d640af1d641c7ca51a948ecd.tar.gz
The first argument of the old __expire_for method was completely
unused in all but one invocation of it, so it is not worth it.  This
also simplifies the code a bit too.
Diffstat (limited to 'lib/yahns/acceptor.rb')
-rw-r--r--lib/yahns/acceptor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yahns/acceptor.rb b/lib/yahns/acceptor.rb
index c61975a..cd9e055 100644
--- a/lib/yahns/acceptor.rb
+++ b/lib/yahns/acceptor.rb
@@ -56,7 +56,7 @@ module Yahns::Acceptor # :nodoc:
           end
         rescue Errno::EMFILE, Errno::ENFILE => e
           logger.error("#{e.message}, consider raising open file limits")
-          queue.fdmap.desperate_expire_for(nil, 5)
+          queue.fdmap.desperate_expire(5)
           sleep 1 # let other threads do some work
         rescue => e
           Yahns::Log.exception(logger, "accept loop", e)