Skip to content

Commit 51d8658

Browse files
committed
Add support for unix-sock protocol
Python Redis supports unix socket url, so this should also be supported
1 parent 9e42f46 commit 51d8658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socketio/redis_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def initialize(self):
108108
def _get_redis_module_and_error(self):
109109
parsed_url = urlparse(self.redis_url)
110110
schema = parsed_url.scheme.split('+', 1)[0].lower()
111-
if schema == 'redis':
111+
if schema in ['redis', 'unix']:
112112
if redis is None or RedisError is None:
113113
raise RuntimeError('Redis package is not installed '
114114
'(Run "pip install redis" '

0 commit comments

Comments
 (0)