diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-06 03:09:48 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-02-09 19:50:53 -0800 |
commit | 33cf16e950d32db97ef03fa304eb2b73e9b3cc87 (patch) | |
tree | dd00151946956f866220dccfbae9e9ee79498e73 /lib/unicorn/const.rb | |
parent | bf82641c8f8efdb0516730febfbb0b2498e1224e (diff) | |
download | unicorn-33cf16e950d32db97ef03fa304eb2b73e9b3cc87.tar.gz |
Use select(2) to multiplex non-blocking accept(2) calls between them. Additionally, aggressively make a bet after accepting clients where we'll try to do a non-blocking accept(2) against the full set of descriptors. This is based on the assumption that if we just accepted connections, we're probably reasonably busy. This should lead to lower latency under high load; but some wasted cycles when requests come in intermitently. By this same logic, we don't really care for the thundering herd problem, either; since it is only noticeable with many (hundreds) of processes when most of them are idle.
Diffstat (limited to 'lib/unicorn/const.rb')
0 files changed, 0 insertions, 0 deletions