Strange Thread related errors

Jeremy Evans jeremyevans0 at gmail.com
Thu Jan 7 15:08:52 EST 2010


On Thu, Jan 7, 2010 at 10:49 AM, Michael Guterl <mguterl at gmail.com> wrote:
> We currently disconnect from both databases in before_fork and
> re-establish the connection in after_fork.
>
> Here's our unicorn config: http://gist.github.com/271449
>
> Maybe I should disable connection pooling?

Try:

  ActiveRecord::Base.clear_active_connections!

instead of:

  ActiveRecord::Base.connection.disconnect!

Jeremy


More information about the mongrel-unicorn mailing list