From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.142.191.1 with SMTP id o1cs129211wff; Fri, 4 Dec 2009 22:43:17 -0800 (PST) Received: from mr.google.com ([10.90.7.11]) by 10.90.7.11 with SMTP id 11mr3353825agg.34.1259995396686 (num_hops = 1); Fri, 04 Dec 2009 22:43:16 -0800 (PST) Received: by 10.90.7.11 with SMTP id 11mr420718agg.34.1259995395153; Fri, 04 Dec 2009 22:43:15 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.213.3.206 with SMTP id 14ls160010ebo.0.p; Fri, 04 Dec 2009 22:43:13 -0800 (PST) Received: by 10.213.75.202 with SMTP id z10mr517924ebj.7.1259995393457; Fri, 04 Dec 2009 22:43:13 -0800 (PST) Received: by 10.213.75.202 with SMTP id z10mr517923ebj.7.1259995393416; Fri, 04 Dec 2009 22:43:13 -0800 (PST) Return-Path: Received: from mail-ew0-f214.google.com (mail-ew0-f214.google.com [209.85.219.214]) by gmr-mx.google.com with ESMTP id 11si370974ewy.9.2009.12.04.22.43.12; Fri, 04 Dec 2009 22:43:12 -0800 (PST) Received-SPF: pass (google.com: domain of chiology@gmail.com designates 209.85.219.214 as permitted sender) client-ip=209.85.219.214; Received: by ewy6 with SMTP id 6so1384617ewy.29 for ; Fri, 04 Dec 2009 22:43:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.86.203 with SMTP id w53mr1482366wee.58.1259995392123; Fri, 04 Dec 2009 22:43:12 -0800 (PST) In-Reply-To: <683a886f0912041804p29185909j9abcb55c555e0f89@mail.gmail.com> References: <683a886f0912041804p29185909j9abcb55c555e0f89@mail.gmail.com> From: Matt Todd Date: Fri, 4 Dec 2009 22:42:52 -0800 Message-ID: <2a8d4a710912042242i49e7385x17630050274e2ea9@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 chiology@gmail.com designates 209.85.219.214 as permitted sender) smtp.mail=chiology@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/b97a5c59dc17d015 List-Unsubscribe: , List-Subscribe: , Content-Type: multipart/alternative; boundary=0016e6d7f07ac422f00479f589b5 --0016e6d7f07ac422f00479f589b5 Content-Type: text/plain; charset=UTF-8 > > 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. > In that code, you're calling a use after the lambda... that lambda is essentially disappearing. You should return that lambda. If it's any value, I've never liked using the builder personally. Matt -- Matt Todd Highgroove Studios www.highgroove.com cell: 404-314-2612 blog: maraby.org Scout - Web Monitoring and Reporting Software www.scoutapp.com --0016e6d7f07ac422f00479f589b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
http://gist.github.com/249= 506

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.

In that code, you're calling a use after the l= ambda... that lambda is essentially disappearing. You should return that la= mbda.

If it's any value, I'= ve never liked using the builder personally.

Matt

=


--
Matt Todd
Highgroove Studios
www.highgroove.com
cell: 404-314-2612
blog: maraby.org

Scout - Web Monitoring an= d Reporting Software
www.scoutapp.com
--0016e6d7f07ac422f00479f589b5--