From 68c2cb67048a651cd9012f1ccc01f0ea6404cd60 Mon Sep 17 00:00:00 2001 From: Alexander Turenko Date: Thu, 14 Mar 2019 03:45:03 +0300 Subject: [PATCH] Remove redundant settimeout() It is already set in connect_tcp() or connect_unix(). Follows up #115. --- tarantool/connection.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tarantool/connection.py b/tarantool/connection.py index 0a782b59..497ff959 100644 --- a/tarantool/connection.py +++ b/tarantool/connection.py @@ -203,11 +203,6 @@ def connect(self): self.inconnect = True self.connect_basic() self.handshake() - # It is important to set socket timeout *after* connection. - # Otherwise the timeout exception will be raised, even when - # the connection fails because the server is simply - # not bound to port - self._socket.settimeout(self.socket_timeout) self.load_schema() self.inconnect = False except socket.error as e: