disable Nagle's algorithm by default
commit4060b7742d047c0000fd1bf4ac2c3b9cae95585a
authorEric Wong <normalperson@yhbt.net>
Thu, 6 Jan 2011 00:19:17 +0000 (5 16:19 -0800)
committerEric Wong <normalperson@yhbt.net>
Thu, 6 Jan 2011 00:22:30 +0000 (5 16:22 -0800)
treea08bcf85730b69abdaf91c3e1fb7edc28fa264ef
parent9b6679ec50ecd184fccd195bd14bda3c6ea2070f
disable Nagle's algorithm by default

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
lib/rainbows.rb
t/t0040-keepalive_requests-setting.sh