Permalink
Browse files

http_server: update comment on tick == 0

The old comment was confusing.  We only zero the tick counter
when forking because application loading can take a long time.
Otherwise, it's always updated.

ref: http://mid.gmane.org/20110908191352.GA25251@dcvr.yhbt.net
  • Loading branch information...
1 parent 0113de2 commit d209910e29d4983f8346233262a49541464252c1 Eric Wong committed Sep 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/unicorn/http_server.rb
@@ -445,7 +445,7 @@ def murder_lazy_workers
now = Time.now.to_i
WORKERS.dup.each_pair do |wpid, worker|
tick = worker.tick
- 0 == tick and next # skip workers that are sleeping
+ 0 == tick and next # skip workers that haven't processed any clients
diff = now - tick
tmp = @timeout - diff
if tmp >= 0

0 comments on commit d209910

Please sign in to comment.