From b79531a9f96736225a8991052a0be5767c217377 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 30 Jun 2017 12:10:06 -0400 Subject: [PATCH] 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 --- lib/apache | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/apache b/lib/apache index 445241e707..e29acf29b3 100644 --- a/lib/apache +++ b/lib/apache @@ -323,6 +323,8 @@ function write_local_uwsgi_http_config { iniset "$file" uwsgi http-chunked-input true iniset "$file" uwsgi http-auto-chunked true iniset "$file" uwsgi http-keepalive false + # Increase socket timeout for slow chunked uploads + iniset "$file" uwsgi socket-timeout 30 enable_apache_mod proxy enable_apache_mod proxy_http