From 1e57c4c846ba9a3b736078b860583b0e7dd33d6c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 Jul 2011 23:27:18 +0000 Subject: remove tcp_nodelay/tcp_nopush tweaking Unicorn 4.x already defaults match those of Rainbows! to favor lower latency instead of lowered bandwidth usage. --- lib/rainbows.rb | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 84604b2..3bf7717 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -1,19 +1,8 @@ # -*- encoding: binary -*- require 'kgio' require 'unicorn' -Unicorn::SocketHelper::DEFAULTS.merge!({ - # the value passed to TCP_DEFER_ACCEPT actually matters in Linux 2.6.32+ - :tcp_defer_accept => 60, - - # keep-alive performance sucks without this due to - # write(headers)-write(body)-read - # because we always write headers and bodies with two calls - :tcp_nodelay => true, - - # we always want to send our headers out ASAP since Rainbows! - # is designed for apps that could trickle out the body slowly - :tcp_nopush => false, -}) +# the value passed to TCP_DEFER_ACCEPT actually matters in Linux 2.6.32+ +Unicorn::SocketHelper::DEFAULTS[:tcp_defer_accept] = 60 # See http://rainbows.rubyforge.org/ for documentation module Rainbows -- cgit v1.2.3-24-ge0c7