about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authornormalperson <normalperson@19e92222-5c0b-0410-8929-a290d50e31e9>2008-03-02 02:34:53 +0000
committernormalperson <normalperson@19e92222-5c0b-0410-8929-a290d50e31e9>2008-03-02 02:34:53 +0000
commitcf4c3f142c4403f3eb1bad4baedf58ec9247d1e5 (patch)
tree3a57c3813bf193aff2515f08c5d9af948cd033d6 /ext
parent255c8fb5aebba36cf4e4cf03810c919135c5ee5a (diff)
downloadunicorn-cf4c3f142c4403f3eb1bad4baedf58ec9247d1e5.tar.gz
Since we're going to close the socket immediately after the
num_processors limit is reached, there's no point in calling
setsockopt(2) to enable TCP_CORK on it.  Instead, only enable
TCP_CORK for connections we are able to handle.

Additionally, avoid calling worker_list.length twice in the
connection rejected case and instead just set num_workers to
@workers.list.length once.  I'm assuming the original
caching of worker_list = @workers.list to avoid having
the log message display a different number due to a race
condition; and this preserves that functionality.


git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@988 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'ext')
0 files changed, 0 insertions, 0 deletions