title: Rack app error handling request {HEAD /health } SystemStackError: stack level too deep
body: <p>After continuous running of my RAILS application on puma server for 3 to 5 days, 
  i'm getting below error: in "puma.stderr.log" file, which is causing to reach the log file size more than 100GB+ in 2 days</p>
  
  <pre><code>Rack app error handling request {HEAD /health } 
  #&lt;SystemStackError: stack level too deep&gt;
  /.../.rvm/gems/ruby-2.3.3/gems/rack-1.5.5/lib/rack/body_proxy.rb:8:in 'respond_to?'
  /.../.rvm/gems/ruby-2.3.3/gems/rack-1.5.5/lib/rack/body_proxy.rb:8:in 'respond_to?'
  /.../.rvm/gems/ruby-2.3.3/gems/rack-1.5.5/lib/rack/body_proxy.rb:8:in 'respond_to?'
  
  (~= logging this same lines for 15000 to 20000 times in log file)
  
  /.../.rvm/gems/ruby-2.3.3/gems/rack-1.5.5/lib/rack/body_proxy.rb:8:in 'respond_to?'
  /.../.rvm/gems/ruby-2.3.3/gems/rack-contrib-1.7.0/lib/rack/contrib/sendfile.rb:100:in 'call'
  /.../.rvm/gems/ruby-2.3.3/gems/railties-4.0.9/lib/rails/engine.rb:511:in 'call'
  /.../.rvm/gems/ruby-2.3.3/gems/railties-4.0.9/lib/rails/application.rb:97:in 'call'
  /.../.rvm/gems/ruby-2.3.3/gems/puma-3.11.4/lib/puma/configuration.rb:225:in 'call'
  /.../.rvm/gems/ruby-2.3.3/gems/puma-3.11.4/lib/puma/server.rb:632:in 'handle_request'
  /.../.rvm/gems/ruby-2.3.3/gems/puma-3.11.4/lib/puma/server.rb:446:in 'process_client'
  /.../.rvm/gems/ruby-2.3.3/gems/puma-3.11.4/lib/puma/server.rb:306:in 'block in run'
  /.../.rvm/gems/ruby-2.3.3/gems/puma-3.11.4/lib/puma/thread_pool.rb:120:in 'block in spawn_thread'
  </code></pre>
  
  <p>my PUMA configuration:</p>
  
  <pre><code>app_path = Rails.root.to_s
  workers         Integer( ENV['WEB_CONCURRENCY'] || 2)
  threads         9,32 # Min and Max threads per worker
  
  preload_app!
  
  environment     'production'
  port            3000
  bind            "unix://#{app_path}/tmp/sockets/puma.sock"
  stdout_redirect "#{app_path}/log/puma/puma.stdout.log", "#{app_path}/log/puma/puma.stderr.log", false # Logging
  
  # Set master PID and state locations
  pidfile         "#{app_path}/tmp/pids/puma.pid"
  state_path      "#{app_path}/tmp/pids/puma.state"
  
  activate_control_app
  </code></pre>
  
  <p>Can anyone help me on this please, I'm unable to trace the exact issue to fix this??</p>