title: Socket.io websockets disconnecting randomly
body: <p>I have a socketio server behind an nginx 1.4.2 proxy. When connecting via the browser, the websocket connection disconnects randomly - sometimes after 1 minute, sometimes after 10 minutes. There is no data being transferred during this 1 - 10 minute period that the socket disconnects in. The <code>proxy_read_timeout</code> of my nginx config is a liberal 1 day. It happens on both Chrome and Firefox. Here is my nginx configuration for the websocket server block:</p>
  
  <pre><code>location / {
    proxy_pass http://socketio_app;
    proxy_redirect off;
  
    proxy_buffering off;
  
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
  
    proxy_set_header Host $host;
    proxy_read_timeout 86400;
  }
  </code></pre>