title: Resource temporarily unavailable using uwsgi + nginx
body: <p>I've django app host using nignx-uwsgi. Here is my uwsgi configuration:</p>
  
  <pre><code>[uwsgi]
   master          = true 
   socket          = /var/uwsgi/uwsgi.sock
   chmod-socket    = 666
   chdir           = /home/ubuntu/test
   wsgi-file       = /home/ubuntu/test/test/wsgi.py
   virtualenv      = /home/ubuntu/virtual
   vacuum          = true
   enable-threads  = true
   daemonize= /home/ubuntu/uwsgi.log
  </code></pre>
  
  <p>I'm getting error in nignx log </p>
  
  <blockquote>
    <p>2017/06/16 04:25:42 [error] 26129#0: *1141328 connect() to unix:///var/uwsgi/uwsgi.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: xxx.xxx.xx, server:</p>
  </blockquote>
  
  <p>and the site shows 502 bad gateway. I have to restart uwsgi to fix it. But the frequency of the error is increasing. Is there anyway to fix this.</p>