From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS14383 205.234.109.0/24 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: rails 2 and slow external services Date: Tue, 14 Dec 2010 18:40:43 -0800 Message-ID: <20101215024043.GA10349@dcvr.yhbt.net> References: <20101213103936.GA8440@dcvr.yhbt.net> <20101214045720.GC5051@dcvr.yhbt.net> <20101214063552.GA12020@dcvr.yhbt.net> <20101214074944.GA13496@dcvr.yhbt.net> <20101214172748.GA18131@dcvr.yhbt.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292382458 10298 80.91.229.12 (15 Dec 2010 03:07:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Dec 2010 03:07:38 +0000 (UTC) To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Wed Dec 15 04:07:34 2010 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:177 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PShiI-000584-4p for gclrrg-rainbows-talk@m.gmane.org; Wed, 15 Dec 2010 04:07:34 +0100 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 977571858389 for ; Tue, 14 Dec 2010 22:07:33 -0500 (EST) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id 838AA1858387 for ; Tue, 14 Dec 2010 21:40:45 -0500 (EST) Received: from localhost (unknown [127.0.2.5]) by dcvr.yhbt.net (Postfix) with ESMTP id D4F811F8DA; Wed, 15 Dec 2010 02:40:43 +0000 (UTC) ghazel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > - I was not using config.threadsafe! (should probably mention that > with the Rainbows! + Rails docs somewhere) Done and pushed out. Thanks for following up with your resolution so others can benefit from your discoveries. >>From 7e2bb251228a30c0d4e66029b20bbbf85bc99a09 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 Dec 2010 18:36:34 -0800 Subject: [PATCH] FAQ: add a note about config.threadsafe! At least one user ran into it: http://mid.gmane.org/AANLkTikegPX2-6Q93++bz_aLt+9nLPJXjg+NkL8tDjeE-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org --- FAQ | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/FAQ b/FAQ index 7609d55..f45568b 100644 --- a/FAQ +++ b/FAQ @@ -98,3 +98,9 @@ For older versions of Rails, the following config.ru will work: One thing to watch out for is that RAILS_ENV will not be set in the environment for you, thus we set it to match RACK_ENV. + +=== I'm using threads and Rails is misbehaving! + +If you use any of the threaded concurrency models, you will need to use +{config.threadsafe!}[http://m.onkey.org/thread-safety-for-your-rails] +in your config/environments/$RAILS_ENV.rb -- Eric Wong _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying