Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

A3S-2753: Fixed redis SSL connection #15

Merged
merged 10 commits into from
May 17, 2023
2 changes: 1 addition & 1 deletion mrq/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def versiontuple(v):
redis_url = urllib.parse.urlparse(config_obj)
if redis_url.scheme == "rediss":
connection_class = pyredisconnection.SSLConnection
connection_class.cert_reqs = "none"

log.info("%s: Connecting to Redis at %s..." %
(attr, redis_url.hostname))
Expand All @@ -162,7 +163,6 @@ def versiontuple(v):
db=int((redis_url.path or "").replace("/", "") or "0"),
password=redis_url.password if redis_url.password is not None else redis_url.username,
max_connections=int(config.get("redis_max_connections")),
ssl_cert_reqs=None,
timeout=int(config.get("redis_timeout")),
decode_responses=False,
connection_class=connection_class
Expand Down
2 changes: 1 addition & 1 deletion mrq/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "0.9.33.3"
VERSION = "0.9.33.5"

if __name__ == "__main__":
import sys
Expand Down