From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.142.191.1 with SMTP id o1cs129247wff; Fri, 4 Dec 2009 22:44:23 -0800 (PST) Received: from mr.google.com ([10.90.57.16]) by 10.90.57.16 with SMTP id f16mr1726197aga.39.1259995461963 (num_hops = 1); Fri, 04 Dec 2009 22:44:21 -0800 (PST) Received: by 10.90.57.16 with SMTP id f16mr243581aga.39.1259995460431; Fri, 04 Dec 2009 22:44:20 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.90.20.3 with SMTP id 3ls290670agt.2.p; Fri, 04 Dec 2009 22:44:19 -0800 (PST) Received: by 10.90.41.31 with SMTP id o31mr4986338ago.4.1259995458724; Fri, 04 Dec 2009 22:44:18 -0800 (PST) Received: by 10.90.41.31 with SMTP id o31mr4986336ago.4.1259995458692; Fri, 04 Dec 2009 22:44:18 -0800 (PST) Return-Path: Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by gmr-mx.google.com with ESMTP id 18si303879gxk.7.2009.12.04.22.44.17; Fri, 04 Dec 2009 22:44:17 -0800 (PST) Received-SPF: pass (google.com: domain of m.fellinger@gmail.com designates 209.85.220.218 as permitted sender) client-ip=209.85.220.218; Received: by fxm10 with SMTP id 10so3318410fxm.14 for ; Fri, 04 Dec 2009 22:44:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.239.179.101 with SMTP id c37mr426636hbg.4.1259995455181; Fri, 04 Dec 2009 22:44:15 -0800 (PST) In-Reply-To: <683a886f0912041804p29185909j9abcb55c555e0f89@mail.gmail.com> References: <683a886f0912041804p29185909j9abcb55c555e0f89@mail.gmail.com> From: Michael Fellinger Date: Sat, 5 Dec 2009 15:43:55 +0900 Message-ID: <9c00d3e00912042243k673476doe228f2145d35f32e@mail.gmail.com> Subject: Re: Rack-compatible server issues To: rack-devel@googlegroups.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of m.fellinger@gmail.com designates 209.85.220.218 as permitted sender) smtp.mail=m.fellinger@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/26d7532ef68e0e27 X-Message-Url: http://groups.google.com/group/rack-devel/msg/4fdcb44a9af47a8b List-Unsubscribe: , List-Subscribe: , Content-Type: text/plain; charset=UTF-8 Structure it like this: http://pastr.it/16475 On Sat, Dec 5, 2009 at 11:04 AM, Kevin Williams wrote: > I'm implementing a Rack-compatible server for JRuby. I'm having issues > with complex apps returning bad data. Simple lambda apps run fine, but > when a Rack::Builder -created app is used, weird stuff happens. > > http://gist.github.com/249506 > > If I pass just the lambda, my server runs fine, but if I pass the > whole builder-created app (any combination of middleware), I get one > of the middleware classes returned from the #call(env) method. > > I thought once my server makes the top @app.call(env) call, it's all > Rack middleware and the user's app chained together. Shouldn't I get > the result of the user's app back to my server no matter what? What > could I be doing wrong that would cause this odd result? > > Kevin > -- Michael Fellinger CTO, The Rubyists, LLC 972-996-5199