about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-15 16:18:40 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-15 23:18:36 -0700
commita418c88efb4b122d381bf97bfb20f0ec2e2cc29c (patch)
tree0ac6504b2c1f316b4e8c55d162e87e30781d52b7
parent1309e7e19092021d252bd948732ae65e4bc22122 (diff)
downloadunicorn-a418c88efb4b122d381bf97bfb20f0ec2e2cc29c.tar.gz
We used to try it on every listener, but then rarely-used
listener ports used mainly for monitoring/debugging would have
accept() unnecessary called, getting unnecessarily expensive
inside the kernel.
-rw-r--r--lib/unicorn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb
index cf0ed8c..bcf5c3b 100644
--- a/lib/unicorn.rb
+++ b/lib/unicorn.rb
@@ -537,7 +537,7 @@ module Unicorn
 
         # make the following bet: if we accepted clients this round,
         # we're probably reasonably busy, so avoid calling select()
-        # and do a speculative accept_nonblock on every listener
+        # and do a speculative accept_nonblock on ready listeners
         # before we sleep again in select().
         redo unless nr == 0 # (nr < 0) => reopen logs