What is the default socket-time value in uWSGI
<p>We are running into very similar problem with this question:</p>

<p><a href="https://stackoverflow.com/questions/26441459/nginx-502-error-and-504-error">nginx 502 error and 504 error</a></p>

<p>The problem is we are getting 502 instead of 504 for some longer requests, say 20 seconds, then it returns 502 to the browser, but the Nginx timeout is set to 60 seconds to wait for the uWSGI's response.</p>

<p>We looked at the logs and we can see this error:</p>

<pre><code>SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected
</code></pre>

<p>Looks like the socket has been closed, so based on the SO link above, I stumbled onto this setting <a href="http://uwsgi-docs.readthedocs.io/en/latest/Options.html#socket-timeout" rel="nofollow noreferrer">http://uwsgi-docs.readthedocs.io/en/latest/Options.html#socket-timeout</a> but I am unable to find out the default value to validate my claim.</p>

<p>Can anyone please shed some light on this one?</p>