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'])