From 1d752777674cacde1badc644102f393871aecfdc Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Thu, 12 Mar 2020 13:47:43 +0000 Subject: Tests: round robin upstream tests. --- test/python/upstreams/1/wsgi.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/python/upstreams/1/wsgi.py (limited to 'test/python/upstreams/1/wsgi.py') diff --git a/test/python/upstreams/1/wsgi.py b/test/python/upstreams/1/wsgi.py new file mode 100644 index 00000000..5077bdb1 --- /dev/null +++ b/test/python/upstreams/1/wsgi.py @@ -0,0 +1,8 @@ +import time + +def application(env, start_response): + delay = int(env.get('HTTP_X_DELAY', 0)) + + start_response('200', [('Content-Length', '0'), ('X-Upstream', '1')]) + time.sleep(delay) + return [] -- cgit