Browse code

Increase the socket timeout on uwsgi local mode

This commit increases the socket timeout value from 4 secs to a much
higher 30 secs. This is just for sanity, the load is high when we're
seeing the wsgi.input timeouts, so uwsgi might be just closing the
socket waiting for data over the wire. 30 seconds is overly conservative
just so we can rule this out. This will likely be shrunk to a more
reasonable value in the future.

Change-Id: Iae85d3a084fb33b2a63550d6e353413e98c0b39c
Partial-Bug: #1701088

Matthew Treinish authored on 2017/07/01 01:10:06
Showing 1 changed files
... ...
@@ -323,6 +323,8 @@ function write_local_uwsgi_http_config {
323 323
     iniset "$file" uwsgi http-chunked-input true
324 324
     iniset "$file" uwsgi http-auto-chunked true
325 325
     iniset "$file" uwsgi http-keepalive false
326
+    # Increase socket timeout for slow chunked uploads
327
+    iniset "$file" uwsgi socket-timeout 30
326 328
 
327 329
     enable_apache_mod proxy
328 330
     enable_apache_mod proxy_http