Merge pull request #2876 from coreos-inc/blocking-logs-fix

Decrease redis timeouts to within the WAMP message window
This commit is contained in:
josephschorr 2018-03-22 21:40:47 -04:00 committed by GitHub
commit b897d896d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ class RedisBuildLogs(object):
def __init__(self, redis_config):
args = dict(redis_config)
args.update({'socket_connect_timeout': 5, 'socket_timeout': 5})
args.update({'socket_connect_timeout': 1, 'socket_timeout': 2})
self._redis_config = redis_config
self._redis = redis.StrictRedis(**args)