Zbatery/Rainbows keepalive problem?
jakecdouglas at gmail.com
Wed Nov 24 16:29:28 EST 2010
I was using zbatery 0.4.0, Unicorn 2.0.1, unsure of the rainbows
version. This is a Rails 3.0.3 app and I am not setting any headers
myself. Are you saying that Rails is doing something that is causing
the problem? Please bear with me, as I am not familiar with the
details of how keep alive works.
On Wed, Nov 24, 2010 at 1:17 PM, Eric Wong <normalperson at yhbt.net> wrote:
> Jake Douglas <jakecdouglas at gmail.com> wrote:
>> I am using zbatery with ThreadPool and just upgraded to 0.5.0, which
>> subsequently upgraded rainbows to 2.0.0 and unicorn to 3.0.0. My
>> browser(s) now hangs for a while during each request. I noticed some
>> discussion about keep alive in the changelog. Putting
>> "keepalive_timeout 0" in the rainbows configuration fixes it. Am I
>> doing something wrong or is this a bug?
> Are you setting a Content-Length or Transfer-Encoding in your app?
> You can add Rack::Chunked and Rack::ContentLength middlewares to your
> config (some frameworks like Rails already do this, I think).
> Which versions of Zbatery/Rainbows!/Unicorn were you using before which
> exhibited this? Rainbows!/Zbatery has supported keepalive for some time
> and none of the three servers ever included
> Rack::Chunked/Rack::ContentLength in its middleware stack by default.
> Eric Wong
> Rainbows! mailing list - rainbows-talk at rubyforge.org
> Do not quote signatures (like this one) or top post when replying
More information about the rainbows-talk