Skip to content

Commit 1c9739a

Browse files
committed
Remove redundant settimeout()
It is already set in connect_tcp() or connect_unix(). Follows up #115.
1 parent 2097884 commit 1c9739a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tarantool/connection.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ def connect(self):
203203
self.inconnect = True
204204
self.connect_basic()
205205
self.handshake()
206-
# It is important to set socket timeout *after* connection.
207-
# Otherwise the timeout exception will be raised, even when
208-
# the connection fails because the server is simply
209-
# not bound to port
210-
self._socket.settimeout(self.socket_timeout)
211206
self.load_schema()
212207
self.inconnect = False
213208
except socket.error as e:

0 commit comments

Comments
 (0)