unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Pierre Baillet <oct@fotonauts.com>
To: Chris Wanstrath <chris@ozmm.org>
Cc: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: Fwd: Support for Soft Timeout in Unicorn
Date: Wed, 9 Jun 2010 15:17:04 +0200	[thread overview]
Message-ID: <AANLkTimubIMS1FrgGT7gCneO-7N250eRJxQjs4LACAFl@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimV05UjKFPJW7xFW7OTALIrQH9Qr9I2u4LBYTwe@mail.gmail.com>

Hello Unicorns,

I've manage to create a simple middleware that replaces the soft
timeout feature. You can have a look at it at
http://gist.github.com/431451

Note that some weird Ruby interpreter behavior breaks at least the
first level of the generated stacktrace (it indicates the actual
method where the raise happened but the wrong line number and file).

Thanks for your assistance,
Cheers,
-- 
Pierre.


On Thu, Jun 3, 2010 at 9:40 PM, Pierre Baillet <oct@fotonauts.com> wrote:
> Ohai,
>
> On Thu, Jun 3, 2010 at 9:38 PM, Chris Wanstrath <chris@ozmm.org> wrote:
>> On Thu, Jun 3, 2010 at 11:47 AM, Eric Wong <normalperson@yhbt.net> wrote:
>>
>>> Actually, internally, Unicorn only knows about Rack and wraps older
>>> CGI-based Rails using the Unicorn::App::OldRails application (via
>>> Unicorn::CGIWrapper).
>>>
>>> "unicorn_rails" basically wraps up the following config for you,
>>> but you could achieve the same effect using "unicorn" and an
>>> explicitly written config.ru:
>>
>> That's what we do at GitHub. We're running Rails 2.2.2 and have a
>> custom config.ru, thanks to Unicorn:
>>
>
> That's great, thanks for the Idea, I'll look into rack middleware
> then. I'll let you know if I manage to have something clean enough.
>
> Cheers,
> --
> Pierre Baillet <oct@fotonauts.com>
> http://www.fotopedia.com/
>



-- 
Pierre Baillet <oct@fotonauts.com>
http://www.fotopedia.com/
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


  reply	other threads:[~2010-06-09 13:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-03 17:37 Fwd: Support for Soft Timeout in Unicorn Eric Wong
2010-06-03 18:06 ` Pierre Baillet
2010-06-03 18:22 ` Fwd: " Eric Wong
2010-06-03 18:32   ` Pierre Baillet
2010-06-03 18:47     ` Eric Wong
2010-06-03 19:38       ` Chris Wanstrath
2010-06-03 19:40         ` Pierre Baillet
2010-06-09 13:17           ` Pierre Baillet [this message]
2010-06-11  1:56             ` Eric Wong
2010-06-04 20:59         ` Eric Wong
2010-06-18 20:13           ` Ryan Tomayko
2010-06-18 21:48             ` Eric Wong
2010-06-21 19:03               ` Ryan Tomayko

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-all from there: mbox

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

  List information: https://yhbt.net/unicorn/

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

  git send-email \
    --in-reply-to=AANLkTimubIMS1FrgGT7gCneO-7N250eRJxQjs4LACAFl@mail.gmail.com \
    --to=oct@fotonauts.com \
    --cc=chris@ozmm.org \
    --cc=mongrel-unicorn@rubyforge.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.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).