From d209910e29d4983f8346233262a49541464252c1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 9 Sep 2011 15:48:53 -0700 Subject: 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 --- lib/unicorn/http_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 95f0e6e..ae0e175 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -445,7 +445,7 @@ class Unicorn::HttpServer 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 -- cgit v1.2.3-24-ge0c7