diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-09-09 15:48:53 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-09-09 15:48:53 -0700 |
commit | d209910e29d4983f8346233262a49541464252c1 (patch) | |
tree | c94e1dbe73b84a8bdfc3a385c438da05c0e767a5 | |
parent | 0113de29108fb669a43d4d7f5528c77a2f96db57 (diff) | |
download | unicorn-d209910e29d4983f8346233262a49541464252c1.tar.gz |
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
-rw-r--r-- | lib/unicorn/http_server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |