From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=1.3 required=5.0 tests=FREEMAIL_FROM,RDNS_NONE, T_DKIM_INVALID shortcircuit=no autolearn=no version=3.3.2 X-Original-To: archivist@yhbt.net Delivered-To: archivist@dcvr.yhbt.net Received: from rubyforge.org (unknown [50.56.192.79]) by dcvr.yhbt.net (Postfix) with ESMTP id EE61120D1F for ; Wed, 2 Apr 2014 05:03:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id AED492E203; Wed, 2 Apr 2014 05:03:42 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org X-Greylist: delayed 452 seconds by postgrey-1.31 at rubyforge; Wed, 02 Apr 2014 05:03:35 UTC Received: from mail-qa0-f51.google.com (mail-qa0-f51.google.com [209.85.216.51]) by rubyforge.org (Postfix) with ESMTP id A44EA2E1F8 for ; Wed, 2 Apr 2014 05:03:35 +0000 (UTC) Received: by mail-qa0-f51.google.com with SMTP id j7so10433194qaq.24 for ; Tue, 01 Apr 2014 22:03:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Y+GcshJyC6PPA6Pv22Lgdiq9sk6myzBee+W/R1H31zM=; b=WXCA/OjoLxVXR5KT0u+dr9XF+x2+prFbcNry5NMIGWfpqYw1p5POEjzXChUjFA065o K0WM19pzF1T6NR3iUfXSWgaSbrKq9HOQNSGvqblew4LkknQSqiFT4BhvKKNckmf9QF6h AUz381OaGyQsfk7NxytxO+E23bA6g6nwTIA9UD8DV/TO6D2c9zP0VVwPE/C2Kd5906cG MzV/ws6N0NSNGwj6Ad6cvhWWaXIBjRRDDTOX9WmT6PYtTkBB1CtOmSjCxmIjM3Mvsk9N a1oZGuUTC/D+eXPMaejjWEO3WWclrWd076iNGz/H26vjzNloJnhPp33qP3ynFq91qgsa z8og== MIME-Version: 1.0 X-Received: by 10.224.69.66 with SMTP id y2mr40420177qai.25.1396414559402; Tue, 01 Apr 2014 21:55:59 -0700 (PDT) Received: by 10.229.28.138 with HTTP; Tue, 1 Apr 2014 21:55:59 -0700 (PDT) In-Reply-To: <20140329013534.GA10450@dcvr.yhbt.net> References: <20140329013534.GA10450@dcvr.yhbt.net> Date: Wed, 2 Apr 2014 15:55:59 +1100 Message-ID: Subject: Re: [RFC] oobgc: link to Aman's gctools for Ruby 2.1+ From: Sam Saffron To: unicorn list X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Perhaps link to https://github.com/discourse/discourse/blob/master/lib/middleware/unicorn_oobgc.rb for a 2.0 compatible solution (for people not on 2.1 yet) On Sat, Mar 29, 2014 at 12:35 PM, Eric Wong wrote: > I've never liked OobGC, so "hot potato!" :) > --- > I'll push this sometime this weekend. > Corrections/edits/acks/nacks welcome. > > lib/unicorn/oob_gc.rb | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/lib/unicorn/oob_gc.rb b/lib/unicorn/oob_gc.rb > index 4e78a70..4cddd50 100644 > --- a/lib/unicorn/oob_gc.rb > +++ b/lib/unicorn/oob_gc.rb > @@ -1,5 +1,11 @@ > # -*- encoding: binary -*- > > +# Strongly consider https://github.com/tmm1/gctools if using Ruby 2.1+ > +# It is built on new APIs in Ruby 2.1, so it is more intelligent than > +# this historical implementation. > +# > +# The following information is only for historical versions of Ruby. > +# > # Runs GC after requests, after closing the client socket and > # before attempting to accept more connections. > # > -- > EW > > _______________________________________________ > 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 _______________________________________________ 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