Here is a patch I wrote for this.
--- /root/api.py 2020-10-12 13:53:40.232782984 +0000
+++ /usr/lib/python3/dist-packages/gnocchi/cli/api.py 2020-10-12
13:57:34.331311398 +0000
@@ -89,9 +89,12 @@
# TODO(sileht): When uwsgi 2.1 will be release we should be able
# to use --wsgi-manage-chunked-input
# https://github.com/unbit/uwsgi/issues/1428
+ mode = conf.api.uwsgi_mode
+ if mode == "http":
+ mode = "http-socket"
args = [
"--if-not-plugin", "python", "--plugin", "python", "--endif",
- "--%s" % conf.api.uwsgi_mode, "%s:%d" % (
+ "--%s" % mode, "%s:%d" % (
conf.host or conf.api.host,
conf.port or conf.api.port),
"--master",
@@ -109,7 +112,6 @@
if conf.api.uwsgi_mode == "http":
args.extend([
"--so-keepalive",
- "--http-keepalive",
"--add-header", "Connection: Keep-Alive"
])
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/