Skip to content

Commit 0d3019c

Browse files
author
Alexey Gadzhiev
committed
Return socket to blocked mode under windows
1 parent a68d2c6 commit 0d3019c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tarantool/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ def check(): # Check that connection is alive
300300
err = ctypes.get_errno()
301301
else:
302302
err = ctypes.get_last_error()
303+
self._socket.setblocking(True)
304+
303305

304306
WWSAEWOULDBLOCK = 10035
305307
if (retbytes < 0) and (err == errno.EAGAIN or

0 commit comments

Comments
 (0)