0

I'm running into an issue where a re-used StrictRedis connection with a socket_timeout parameter is overriding a brpop command with an unlimited timeout. Any ideas?

redis_audience = StrictRedis(host=host,
                             port=port,
                             db=1,
                             socket_timeout=10,  # the culprit
                             socket_connect_timeout=10)

redis_audience.brpop(key, timeout=0)  # this will fail after 10 seconds
dizzyf
  • 3,263
  • 19
  • 29

0 Answers0