From 1a0b0c8b5424c3cc1a944902281a6a02c75cc66c Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Fri, 17 Jun 2016 19:56:11 -0700 Subject: [PATCH] Set redis socket timeout to 5s --- voting-app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voting-app/app.py b/voting-app/app.py index b80f972..1d194b6 100644 --- a/voting-app/app.py +++ b/voting-app/app.py @@ -13,7 +13,7 @@ app = Flask(__name__) def get_redis(): if not hasattr(g, 'redis'): - g.redis = Redis(host="redis", db=0) + g.redis = Redis(host="redis", db=0, socket_timeout=5) return g.redis @app.route("/", methods=['POST','GET'])