Skip to content

Commit 14c1923

Browse files
committed
Fix regression in Unix domain sockets PYTHON-297
1 parent 096c312 commit 14c1923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymongo/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def __socket(self):
679679
"""Get a SocketInfo from the pool.
680680
"""
681681
host, port = (self.__host, self.__port)
682-
if host is None and port is None:
682+
if host is None or (port is None and '/' not in host):
683683
host, port = self.__find_node()
684684

685685
try:

0 commit comments

Comments
 (0)