about summary refs log tree commit homepage
path: root/lib/rainbows/rev/heartbeat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/rev/heartbeat.rb')
-rw-r--r--lib/rainbows/rev/heartbeat.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/rainbows/rev/heartbeat.rb b/lib/rainbows/rev/heartbeat.rb
deleted file mode 100644
index c4a9bb9..0000000
--- a/lib/rainbows/rev/heartbeat.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# -*- encoding: binary -*-
-# :enddoc:
-# This class handles the Unicorn fchmod heartbeat mechanism
-# in Rev-based concurrency models to prevent the master
-# process from killing us unless we're blocked.  This class
-# will also detect and execute the graceful exit if triggered
-# by SIGQUIT
-class Rainbows::Rev::Heartbeat < Rev::TimerWatcher
-  KATO = Rainbows::Rev::KATO
-  CONN = Rainbows::Rev::CONN
-  G = Rainbows::G
-
-  def on_timer
-    if (ot = G.kato) >= 0
-      ot = Time.now - ot
-      KATO.delete_if { |client, time| time < ot and client.timeout? }
-    end
-    exit if (! G.tick && CONN.size <= 0)
-  end
-end