From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.142.191.1 with SMTP id o1cs123098wff; Fri, 4 Dec 2009 18:37:40 -0800 (PST) Received: from mr.google.com ([10.224.120.85]) by 10.224.120.85 with SMTP id c21mr431830qar.0.1259980659332 (num_hops = 1); Fri, 04 Dec 2009 18:37:39 -0800 (PST) Received: by 10.224.120.85 with SMTP id c21mr56618qar.0.1259980657803; Fri, 04 Dec 2009 18:37:37 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.224.42.144 with SMTP id s16ls109969qae.2.p; Fri, 04 Dec 2009 18:37:36 -0800 (PST) Received: by 10.150.71.42 with SMTP id t42mr4145722yba.15.1259980656618; Fri, 04 Dec 2009 18:37:36 -0800 (PST) Received: by 10.90.24.14 with SMTP id 14mr4694485agx.13.1259978701931; Fri, 04 Dec 2009 18:05:01 -0800 (PST) Received: by 10.90.24.14 with SMTP id 14mr4694484agx.13.1259978701917; Fri, 04 Dec 2009 18:05:01 -0800 (PST) Return-Path: Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by gmr-mx.google.com with ESMTP id 17si301590gxk.8.2009.12.04.18.05.00; Fri, 04 Dec 2009 18:05:00 -0800 (PST) Received-SPF: pass (google.com: domain of kevwil@gmail.com designates 72.14.220.154 as permitted sender) client-ip=72.14.220.154; Received: by fg-out-1718.google.com with SMTP id 16so134176fgg.13 for ; Fri, 04 Dec 2009 18:05:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.239.139.211 with SMTP id u19mr391570hbu.97.1259978699991; Fri, 04 Dec 2009 18:04:59 -0800 (PST) Date: Fri, 4 Dec 2009 19:04:59 -0700 Message-ID: <683a886f0912041804p29185909j9abcb55c555e0f89@mail.gmail.com> Subject: 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/c8d075b92d950404 List-Unsubscribe: , List-Subscribe: , Content-Type: text/plain; charset=UTF-8 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