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 <[email protected]> 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 - [email protected] > http://rubyforge.org/mailman/listinfo/mongrel-unicorn > Do not quote signatures (like this one) or top post when replying _______________________________________________ Unicorn mailing list - [email protected] http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying
