From 0f4f015737297ac5245d0be9ee83553770ade0a9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Feb 2011 15:05:25 -0800 Subject: test_isolate: use latest Unicorn It supports IPv6 and pulls in a better Kgio. Since Unicorn defaults to ":tcp_nopush => true", we need to flip it back to false to be compatible with the types of apps Rainbows! is targetted as. --- lib/rainbows.rb | 4 ++++ t/test_isolate.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 8c1bed9..8271d25 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -9,6 +9,10 @@ Unicorn::SocketHelper::DEFAULTS.merge!({ # 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, }) module Rainbows diff --git a/t/test_isolate.rb b/t/test_isolate.rb index b1f6fe6..7d04eac 100644 --- a/t/test_isolate.rb +++ b/t/test_isolate.rb @@ -16,7 +16,7 @@ $stdout.reopen($stderr) lock = File.open(__FILE__, "rb") lock.flock(File::LOCK_EX) Isolate.now!(opts) do - gem 'unicorn', '3.3.1' + gem 'unicorn', '3.4.0' gem 'kcar', '0.1.2' gem 'raindrops', '0.4.1' -- cgit v1.2.3-24-ge0c7