def error(self, connection): for m in Protocol.error(self, connection): yield m err = connection.socket.getsockopt(SOL_SOCKET, SO_ERROR) self._logger.warning('Connection error status: %d(%s)', err, errno.errorcode.get(err, 'Not found')) connection.responder.mainroutine.close() if False: yield
def error(self, connection): for m in connection.waitForSend(ZooKeeperConnectionStateEvent(ZooKeeperConnectionStateEvent.DOWN, connection, connection.connmark, self)): yield m for m in Protocol.error(self, connection): yield m
def error(self, connection): for m in connection.waitForSend( ZooKeeperConnectionStateEvent( ZooKeeperConnectionStateEvent.DOWN, connection, connection.connmark, self)): yield m for m in Protocol.error(self, connection): yield m