Skip to content

Commit

Permalink
Merge pull request #202 from lff5/patch-1
Browse files Browse the repository at this point in the history
pass timeout to socket in SMBConnection.py
  • Loading branch information
miketeo authored Dec 25, 2022
2 parents caff0e2 + 5f04baa commit f9a9958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python3/smb/SMBConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def connect(self, ip, port = 139, sock_family = None, timeout = 60):
self.sock.settimeout(timeout)
self.sock.connect(( ip, port ))
else:
self.sock = socket.create_connection(( ip, port ))
self.sock = socket.create_connection(( ip, port ), timeout = timeout)

self.is_busy = True
try:
Expand Down

0 comments on commit f9a9958

Please sign in to comment.