[Git][noosfero/noosfero][master] puma: clear connections to avoid leaks/crashes

Bráulio Bhavamitra gitlab at mg.gitlab.com
Sat Mar 18 11:00:24 BRT 2017


Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero


Commits:
34948ba7 by Braulio Bhavamitra at 2017-03-18T10:58:25-03:00
puma: clear connections to avoid leaks/crashes

- - - - -


1 changed file:

- config/puma.rb


Changes:

=====================================
config/puma.rb
=====================================
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -39,6 +39,8 @@ workers Workers unless RUBY_ENGINE == 'jruby'
 threads 0,Threads
 
 before_fork do
+  ActiveRecord::Base.clear_all_connections!
+
   begin
     require 'puma_worker_killer'
     PumaWorkerKiller.config do |config|



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/34948ba77913b6d7f1cf8c4087f65fb6139bbc6b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170318/81289263/attachment.html>


More information about the Noosfero-dev mailing list