diff --git a/experimental/example/client/client.py b/experimental/example/client/client.py index f375f404c..a46f66166 100644 --- a/experimental/example/client/client.py +++ b/experimental/example/client/client.py @@ -8,9 +8,10 @@ pyapps = ['http://pyapp:5000/'] concurrency = 5 def do_requests(): + s = requests.Session() while True: try: - requests.get(random.choice(pyapps)) + s.get(random.choice(pyapps)) except: logging.error("Error doing request", exc_info=sys.exc_info()) logging.info("Did request") diff --git a/experimental/example/pyapp/app.py b/experimental/example/pyapp/app.py index 22409b463..7e2791d04 100644 --- a/experimental/example/pyapp/app.py +++ b/experimental/example/pyapp/app.py @@ -42,4 +42,4 @@ def hello(): return result if __name__ == "__main__": - app.run(host="0.0.0.0", debug=True) + app.run(host="0.0.0.0", port=5000, debug=True)