diff --git a/src/tarantool/connection.py b/src/tarantool/connection.py index a0173adc..73c60978 100644 --- a/src/tarantool/connection.py +++ b/src/tarantool/connection.py @@ -181,7 +181,7 @@ def _opt_reconnect(self): ''' def check(): # Check that connection is alive rc = self._recv(self._socket.fileno(), '', 1, - socket.MSG_DONTWAIT or socket.MSG_PEEK) + socket.MSG_DONTWAIT | socket.MSG_PEEK) if ctypes.get_errno() == errno.EAGAIN: ctypes.set_errno(0) return errno.EAGAIN