diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-04 15:05:25 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-04 18:34:03 -0800 |
commit | 0f4f015737297ac5245d0be9ee83553770ade0a9 (patch) | |
tree | 5e8b96f127d85878e278a19c1297dc64f6196804 | |
parent | f015a843fcfa120286628ec75829575ee2391380 (diff) | |
download | rainbows-0f4f015737297ac5245d0be9ee83553770ade0a9.tar.gz |
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.
-rw-r--r-- | lib/rainbows.rb | 4 | ||||
-rw-r--r-- | t/test_isolate.rb | 2 |
2 files changed, 5 insertions, 1 deletions
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' |