From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.142.191.1 with SMTP id o1cs15272wff; Sat, 5 Dec 2009 09:10:06 -0800 (PST) Received: from mr.google.com ([10.91.163.1]) by 10.91.163.1 with SMTP id q1mr1765963ago.35.1260033006036 (num_hops = 1); Sat, 05 Dec 2009 09:10:06 -0800 (PST) Received: by 10.91.163.1 with SMTP id q1mr228260ago.35.1260033004511; Sat, 05 Dec 2009 09:10:04 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.86.193.11 with SMTP id q11ls53494fgf.1.p; Sat, 05 Dec 2009 09:10:02 -0800 (PST) Received: by 10.87.71.38 with SMTP id y38mr55324fgk.19.1260033001868; Sat, 05 Dec 2009 09:10:01 -0800 (PST) Received: by 10.204.10.8 with SMTP id n8mr142411bkn.5.1260028857351; Sat, 05 Dec 2009 08:00:57 -0800 (PST) Received: by 10.204.10.8 with SMTP id n8mr142410bkn.5.1260028857326; Sat, 05 Dec 2009 08:00:57 -0800 (PST) Return-Path: Received: from mail-fx0-f214.google.com (mail-fx0-f214.google.com [209.85.220.214]) by gmr-mx.google.com with ESMTP id 17si212760bwz.8.2009.12.05.08.00.56; Sat, 05 Dec 2009 08:00:56 -0800 (PST) Received-SPF: pass (google.com: domain of kevwil@gmail.com designates 209.85.220.214 as permitted sender) client-ip=209.85.220.214; Received: by fxm6 with SMTP id 6so3546397fxm.20 for ; Sat, 05 Dec 2009 08:00:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.239.163.201 with SMTP id q9mr506435hbd.38.1260028854304; Sat, 05 Dec 2009 08:00:54 -0800 (PST) In-Reply-To: <9c00d3e00912042243k673476doe228f2145d35f32e@mail.gmail.com> References: <683a886f0912041804p29185909j9abcb55c555e0f89@mail.gmail.com> <9c00d3e00912042243k673476doe228f2145d35f32e@mail.gmail.com> Date: Sat, 5 Dec 2009 09:00:54 -0700 Message-ID: <683a886f0912050800q54aeb159hb8b32c54c4d21d91@mail.gmail.com> Subject: Re: Rack-compatible server issues From: Kevin Williams To: rack-devel@googlegroups.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/f0715ea40271bc6d List-Unsubscribe: , List-Subscribe: , Content-Type: text/plain; charset=UTF-8 Thanks for the clean example!!! What I get as output is: 200 Content-Typetext/plain # I expect to see 'OK' instead of the CommonLogger instance as the 3rd element in the returned array. I seem to always have either that problem, or I get a Rack::Lint returned as the only element returned. This is really problematic as I expect a 'status' number as the first element. On Fri, Dec 4, 2009 at 11:43 PM, Michael Fellinger wrote: > 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 >