From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Cc: "J. Austin Hughey" <jhughey@engineyard.com>
Subject: Re: Sending ABRT to timeout-errant process before KILL
Date: Fri, 9 Sep 2011 16:01:41 -0700 [thread overview]
Message-ID: <20110909230141.GA9521@dcvr.yhbt.net> (raw)
In-Reply-To: <20110908191352.GA25251@dcvr.yhbt.net>
Eric Wong <normalperson@yhbt.net> wrote:
> sleeping means they haven't accepted a client connection, yet. Not
> sleeping while processing a client request. I'll clarify that in the
> code.
Pushed to git://bogomips.org/unicorn.git
(commit d209910e29d4983f8346233262a49541464252c1)
> git clone git://bogomips.org/rainbows
> cat rainbows/lib/rainbows/thread_timeout.rb
>
> This is conceptually similar to "timeout" in the Ruby standard library,
> but does not allow nesting.
>
> I'll try to clarify more later today if you have questions, in a bit of
> a rush right now.
Did you manage to get anything going based on this? I should add that
this has the same chance of working as a SIGABRT handler written in
Ruby (but is less intrusive).
Hopefully the following diagram/chart from a previous post can explain
why you can't rely on trappable signal handlers if the Ruby VM is in a
bad state:
http://mid.gmane.org/20110817201323.GA24581@dcvr.yhbt.net
--
Eric Wong
_______________________________________________
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
prev parent reply other threads:[~2011-09-09 23:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-08 9:04 Sending ABRT to timeout-errant process before KILL J. Austin Hughey
2011-09-08 19:13 ` Eric Wong
2011-09-09 23:01 ` Eric Wong [this message]
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=20110909230141.GA9521@dcvr.yhbt.net \
--to=normalperson@yhbt.net \
--cc=jhughey@engineyard.com \
--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).