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=0.0 required=3.0 tests=AWL,MIME_QP_LONG_LINE, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Jake Douglas Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: Zbatery/Rainbows keepalive problem? Date: Sun, 28 Nov 2010 09:26:01 -0800 Message-ID: References: <20101124211714.GA25256@dcvr.yhbt.net> <20101124221402.GA28625@dcvr.yhbt.net> <20101127085011.GA8663@dcvr.yhbt.net> <20101128100705.GA23779@dcvr.yhbt.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1290969738 31920 80.91.229.12 (28 Nov 2010 18:42:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Nov 2010 18:42:18 +0000 (UTC) To: "Rainbows! list" Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Sun Nov 28 19:42:14 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SqvcsOx3tn8JUr83K0OT/AeAGKiUN8prieUmhN/UEIM=; b=pFrsXZrHlGwXaG/zTJxoZ3AbeVL7BD2y/YAnMgxhyyxF3bcersUpweG3+85snlmyOC 440etnXKnQ3IEmpmr0H0JSAqkpERPStsSVGsvbqvHVWZFYqafz5v879RcJpoq7mHypDX AmptV5TA6PHdVh83ZmWT2MYEb9TacGg5n4lZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=pMJPJilNiaK7meMS9mFZtD21qrei5lSs5MzHyyhZ6AW4eIL+BSvRI1Z52qhSkGnRsF zXSanO8FT95/vLIdB3HhNJzLg9C/JV+Lvp7BUOb2rBqOkAg0pgyvHYblJU27mNf+FYO7 W1oEg9ISTdl+0gT6S7FJDxdHBaflelinfsSD0= In-Reply-To: <20101128100705.GA23779-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> 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:156 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PMmCR-0008PD-8F for gclrrg-rainbows-talk@m.gmane.org; Sun, 28 Nov 2010 19:42:11 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 5FEE0185835E for ; Sun, 28 Nov 2010 13:42:10 -0500 (EST) Received: from mail-fx0-f50.google.com (mail-fx0-f50.google.com [209.85.161.50]) by rubyforge.org (Postfix) with ESMTP id 59BD5185835E for ; Sun, 28 Nov 2010 12:26:03 -0500 (EST) Received: by fxm14 with SMTP id 14so2783326fxm.23 for ; Sun, 28 Nov 2010 09:26:02 -0800 (PST) Received: by 10.223.71.199 with SMTP id i7mr4474970faj.57.1290965161966; Sun, 28 Nov 2010 09:26:01 -0800 (PST) Received: by 10.223.105.207 with HTTP; Sun, 28 Nov 2010 09:26:01 -0800 (PST) On Sun, Nov 28, 2010 at 2:07 AM, Eric Wong wrote: > Jake Douglas wrote: >> After some more experimentation, it looks like the browser(s) fail to >> close the connection after receiving the responses. Zbatery then waits >> until the keepalive_timeout has expired, closes it, and accepts the >> next connection. I gave the same application a try using Thin with >> keep-alive and everything works fine. I spent a lot of time trying to >> identify differences between the two, but the only useful thing I >> managed to find is that the browser side never sends a FIN-ACK when >> talking to Zbatery. For some reason, the browser doesn't think it's >> finished. Any suggestions appreciated. > > A shot in the dark, but I wonder if web browsers do anything special > with the Server: header with regard to keepalive. =A0Off the top of my > head, I know Thin includes the "Server:" header in all responses while > Rainbows! does not[1]. > > Can you try loading the Rainbows::ServerToken middleware to add > the Server header? > > =A0use Rainbows::ServerToken, "foo/bar" > > Any other differences in the headers the two servers send? > > [1] - from what I can tell, rfc2616 does not require the Server: token, > =A0 =A0 =A0and recommends it to be configurable. > > -- > 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 > Adding the Server header does not change anything. The only other difference I can see is that Rainbows! includes the Date header. However, removing it also does not change the behavior. I am at a complete loss now for what is causing this. _______________________________________________ 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