Actioncable timeout disconnect not triggered
<p>on Actioncable, when i disable my wifi to simulate an internet lost, the <code>unsubscribed</code> method in Channel or the <code>disconnect</code> methods in Connection didn't triggered. How to active the timeout disconnection ?</p>

<p>Here it's my config of actioncable with rails / capistrano / puma / nginx :</p>

<p>Rails <code>5.0.0.1</code> side :</p>

<pre><code># config/cable.yml
staging:
    adapter: redis
    url: redis://localhost:6379/1
</code></pre>

<p>and</p>

<pre><code># cable/config.ru
require ::File.expand_path('../../config/environment', __FILE__)
Rails.application.eager_load!

run ActionCable.server
</code></pre>

<p>and with capistrano/puma</p>

<pre><code>set :puma_rackup, -&gt; { File.join(current_path, 'cable/config.ru') }
</code></pre>

<p>Nginx side:</p>

<pre><code>upstream app {
  server unix:/home/ubuntu/rails-app/shared/tmp/sockets/puma.sock fail_timeout=0;
}

server {
  listen 443 ssl;
  server_name ws.domain.co;

  ssl on;
  ssl_certificate /etc/letsencrypt/live/domain.co/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/domain.co/privkey.pem;

  ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';

  location / {
    proxy_pass http://app;
    proxy_http_version 1.1;
    proxy_set_header Upgrade websocket;
    proxy_set_header Connection Upgrade;
  }

}
</code></pre>