We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341c0c1 commit 458a9cfCopy full SHA for 458a9cf
tarantool/connection.py
@@ -332,8 +332,12 @@ def check(): # Check that connection is alive
332
raise NetworkError(
333
socket.error(last_errno, errno.errorcode[last_errno]))
334
attempt += 1
335
-
336
- self.handshake()
+ try:
+ self.inconnect = True
337
+ self.handshake()
338
+ except:
339
+ self.inconnect = False
340
+ raise
341
# It is important to set socket timeout *after* connection.
342
# Otherwise the timeout exception will be raised, even when
343
# the connection fails because the server is simply
0 commit comments