From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: Zbatery/Rainbows keepalive problem? Date: Wed, 24 Nov 2010 21:17:15 +0000 Message-ID: <20101124211714.GA25256@dcvr.yhbt.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1290633446 30663 80.91.229.12 (24 Nov 2010 21:17:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 21:17:26 +0000 (UTC) To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Wed Nov 24 22:17:22 2010 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:148 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLMiP-0005J6-G9 for gclrrg-rainbows-talk@m.gmane.org; Wed, 24 Nov 2010 22:17:21 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id EC0AA1858321 for ; Wed, 24 Nov 2010 16:17:20 -0500 (EST) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id A08FE1858321 for ; Wed, 24 Nov 2010 16:17:15 -0500 (EST) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id 1D7911F7EB; Wed, 24 Nov 2010 21:17:15 +0000 (UTC) Jake Douglas 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-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying