title: nginx close upstream connection after request
body: <p>I need to keep alive my connection between nginx and upstream nodejs.</p>
  
  <p>Just compiled and installed nginx 1.2.0</p>
  
  <p>my configuration file:</p>
  
  <pre><code>upstream backend {
      ip_hash;
      server dev:3001;
      server dev:3002;
      server dev:3003;
      server dev:3004;
      keepalive 128;
  }
  
  server {
      listen      9000;
      server_name dev;
  
      location / {
          proxy_pass http://backend;
          error_page  404 = 404.png;
      }
  }
  </code></pre>
  
  <p>My programe (dev:3001 - 3004) detect that the connection was closed by nginx after response.</p>
  
  <p><a href="http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive" rel="noreferrer">document</a></p>