summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2023-02-13 21:46:40 -0800
committerTim Burke <tim.burke@gmail.com>2023-04-18 11:49:05 -0700
commit469c38e9fb91bf383e92fd697eceb07f30316030 (patch)
tree34f945f67fdc7ce3107cd4c17e9616b89972e2eb /etc
parent4b6f54d063c33e13ced7d6dd5208921680f56ca6 (diff)
downloadswift-469c38e9fb91bf383e92fd697eceb07f30316030.tar.gz
wsgi: Add keepalive_timeout option
Clients sometimes hold open connections "just in case" they might later pipeline requests. This can cause issues for proxies, especially if operators restrict max_clients in an effort to improve response times for the requests that *do* get serviced. Add a new keepalive_timeout option to give proxies a way to drop these established-but-idle connections without impacting active connections (as may happen when reducing client_timeout). Note that this requires eventlet 0.33.4 or later. Change-Id: Ib5bb84fa3f8a4b9c062d58c8d3689e7030d9feb3
Diffstat (limited to 'etc')
-rw-r--r--etc/proxy-server.conf-sample6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/proxy-server.conf-sample b/etc/proxy-server.conf-sample
index d893ff8d7..c47b0cdb2 100644
--- a/etc/proxy-server.conf-sample
+++ b/etc/proxy-server.conf-sample
@@ -85,8 +85,14 @@ bind_port = 8080
# CORS documentation).
# cors_expose_headers =
#
+# General timeout when sending to or receiving from clients.
# client_timeout = 60.0
#
+# Timeout to use when looking for pipelined requests. Set to zero to disable
+# request pipelining. Defaults to client_timeout. Requires eventlet>=0.33.4;
+# with earlier eventlet, any non-zero value is treated as client_timeout.
+# keepalive_timeout =
+#
# Note: enabling evenlet_debug might reveal sensitive information, for example
# signatures for temp urls
# eventlet_debug = false