1 # -*- encoding: binary -*-
3 # This class handles the Unicorn fchmod heartbeat mechanism
4 # in Rev-based concurrency models to prevent the master
5 # process from killing us unless we're blocked. This class
6 # will also detect and execute the graceful exit if triggered
8 class Rainbows::Rev::Heartbeat < Rev::TimerWatcher
9 KATO = Rainbows::Rev::KATO
10 CONN = Rainbows::Rev::CONN
16 KATO.delete_if { |client, time| time < ot and client.timeout? }
18 exit if (! G.tick && CONN.size <= 0)