diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-13 22:17:14 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-13 22:17:14 +0000 |
commit | b1d8d3de991ebc5b7d655f2e8a1294129021db8a (patch) | |
tree | dd61a65c601e021ca23dac92783643dcdbba6311 /lib/unicorn/socket_helper.rb | |
parent | c1cac62571b543ac8e9f7203f8c315bb75516a20 (diff) | |
download | unicorn-b1d8d3de991ebc5b7d655f2e8a1294129021db8a.tar.gz |
These TCP settings are a closer match to the behavior of Unix domain sockets and what users expect for fast streaming responses even if nginx can't provide them just now...
Diffstat (limited to 'lib/unicorn/socket_helper.rb')
-rw-r--r-- | lib/unicorn/socket_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/unicorn/socket_helper.rb b/lib/unicorn/socket_helper.rb index 8548276..3519a7b 100644 --- a/lib/unicorn/socket_helper.rb +++ b/lib/unicorn/socket_helper.rb @@ -27,9 +27,9 @@ module Unicorn # same default value as Mongrel :backlog => 1024, - # since we don't do keepalive, we'll always flush-on-close and - # this saves packets for everyone. - :tcp_nopush => true, + # favor latency over bandwidth savings + :tcp_nopush => false, + :tcp_nodelay => true, } #:startdoc: |