enable TCP_NOPUSH/TCP_CORK by default
commitc28e2610cfc70e89a0ffabe18356d148afe98bfc
authorEric Wong <normalperson@yhbt.net>
Mon, 31 Jan 2011 23:51:30 +0000 (31 15:51 -0800)
committerEric Wong <normalperson@yhbt.net>
Mon, 31 Jan 2011 23:52:36 +0000 (31 15:52 -0800)
treef48226cbfdf9c4be1c519865130bdf72358c37e8
parente3420e0ae1f3c38f125010134d2cdeb22c6fa64e
enable TCP_NOPUSH/TCP_CORK by default

It's actually harmless since Unicorn only supports "fast"
applications that do not trickle, and we don't do keepalive so
we'll always flush-on-close.  This should reduce wakeups on the
nginx proxy server if nginx is over TCP.  Mongrel 1.x had
TCP_CORK enabled by default, too.
lib/unicorn/configurator.rb
lib/unicorn/socket_helper.rb