about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-05 16:19:17 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-05 16:22:30 -0800
commit4060b7742d047c0000fd1bf4ac2c3b9cae95585a (patch)
treea08bcf85730b69abdaf91c3e1fb7edc28fa264ef /t
parent9b6679ec50ecd184fccd195bd14bda3c6ea2070f (diff)
downloadrainbows-4060b7742d047c0000fd1bf4ac2c3b9cae95585a.tar.gz
Nagle's algorithm is harmful with the write-write-read sequence
during keepalive, so we disable it performance for users using
keepalive.  We always write headers with a separate write
because Rack response bodies may not always be ready for writing
when headers are.

This requires Unicorn 3.3.0
Diffstat (limited to 't')
-rwxr-xr-xt/t0040-keepalive_requests-setting.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/t/t0040-keepalive_requests-setting.sh b/t/t0040-keepalive_requests-setting.sh
index aee6cd3..81194f1 100755
--- a/t/t0040-keepalive_requests-setting.sh
+++ b/t/t0040-keepalive_requests-setting.sh
@@ -6,11 +6,6 @@ t_begin "setup and start" && {
         rainbows_setup $model 50 666
         rtmpfiles curl_out curl_err
         grep 'keepalive_timeout 666' $unicorn_config
-        ed -s $unicorn_config <<EOF
-,s/listen.*/&, :tcp_nodelay => true/
-w
-EOF
-        grep nodelay $unicorn_config
         rainbows -E none -D env.ru -c $unicorn_config
         rainbows_wait_start
 }