From a418c88efb4b122d381bf97bfb20f0ec2e2cc29c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Sep 2009 16:18:40 -0700 Subject: Fix comment about speculative accept() 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. --- lib/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7