From b1d8d3de991ebc5b7d655f2e8a1294129021db8a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Jun 2011 22:17:14 +0000 Subject: change TCP defaults to favor low latency 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... --- lib/unicorn/socket_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/unicorn/socket_helper.rb') 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: -- cgit v1.2.3-24-ge0c7