rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / code / Atom feed
From: James Tucker <jftucker@gmail.com>
To: rack-devel@googlegroups.com
Subject: Re: Rack Application Initializes On Every Request
Date: Wed, 28 Dec 2011 14:35:27 -0400	[thread overview]
Message-ID: <54F669AE-14FD-425A-B6CE-BBC4D893D5ED@gmail.com> (raw)
In-Reply-To: <a8e4d7dc-fdd7-4457-8750-26cc31a2607b@o9g2000vbc.googlegroups.com>

Can you provide some more information?

Rack doesn't instantiate anything itself.

If you're using Rack::Builder, and you're talking about a middleware, then it's likely you forgot to call #to_app on the Builder instance before passing it to the handler.

On Dec 28, 2011, at 11:43 AM, Frank Ficnar wrote:

> Is it normal that my 'initialize' method is called on every request to
> my Rack application (non-Rails)?
> 
> Rack' 1.3.5 didn't do this ... it started with the 1.4.0 update.
> 
> Frank

  reply	other threads:[~2011-12-28 18:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-28 15:43 Frank Ficnar
2011-12-28 18:35 ` James Tucker [this message]
2011-12-28 19:38   ` Frank Ficnar
2011-12-29  4:47     ` Frank Ficnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54F669AE-14FD-425A-B6CE-BBC4D893D5ED@gmail.com \
    --to=rack-devel@googlegroups.com \
    --subject='Re: Rack Application Initializes On Every Request' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/rack.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).