According to the uwsgi docs [1] for http keepalive there is a separate
option for http keep alive, and just setting connection close isn't
enough. This commit makes sure we disable http keepalive. This will
hopefully fix the random connection issues we get on image uploads to
glance, which uses uwsgi http mode.
[1] http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#http-keep-alive
Change-Id: Ic5f83c5c93f28b2bd62ca9ac96ca8c87797ea5c9
Closes-Bug: #1701088
| ... | ... |
@@ -322,6 +322,7 @@ function write_local_uwsgi_http_config {
|
| 322 | 322 |
iniset "$file" uwsgi http-raw-body true |
| 323 | 323 |
iniset "$file" uwsgi http-chunked-input true |
| 324 | 324 |
iniset "$file" uwsgi http-auto-chunked true |
| 325 |
+ iniset "$file" uwsgi http-keepalive false |
|
| 325 | 326 |
|
| 326 | 327 |
enable_apache_mod proxy |
| 327 | 328 |
enable_apache_mod proxy_http |