def error(self, connection): for m in Protocol.error(self, connection): yield m connection.scheduler.ignore(JsonRPCRequestEvent.createMatcher(connection = connection)) self._logger.warning('JSON-RPC connection is reset on %r', connection) for m in connection.waitForSend(JsonRPCConnectionStateEvent(JsonRPCConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def error(self, connection): for m in Protocol.error(self, connection): yield m connection.handler.close() self._logger.warning('Openflow connection is reset on %r', connection) if connection.openflow_datapathid is not None: for m in connection.waitForSend(OpenflowConnectionStateEvent(connection.openflow_datapathid, connection.openflow_auxiliaryid, OpenflowConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def error(self, connection): for m in Protocol.error(self, connection): yield m for m in connection.waitForSend( MyProtocolConnectionStateEvent( MyProtocolConnectionStateEvent.DOWN, connection, connection.connmark, self)): yield m
def error(self, connection): for m in Protocol.error(self, connection): yield m self._logger.warning('Redis connection is reset on %r', connection) for m in connection.waitForSend( RedisConnectionStateEvent( RedisConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def error(self, connection): for m in Protocol.error(self, connection): yield m for m in connection.inputstream.error(connection, True): yield m connection.terminate(connection._raw_writer) connection._raw_writer = None for m in connection.waitForSend(RawConnectionStateEvent(RawConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def error(self, connection): for m in Protocol.error(self, connection): yield m connection.scheduler.ignore( JsonRPCRequestEvent.createMatcher(connection=connection)) self._logger.warning('JSON-RPC connection is reset on %r', connection) for m in connection.waitForSend( JsonRPCConnectionStateEvent( JsonRPCConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def error(self, connection): for m in Protocol.error(self, connection): yield m connection.handler.close() self._logger.warning('Openflow connection is reset on %r', connection) if connection.openflow_datapathid is not None: for m in connection.waitForSend( OpenflowConnectionStateEvent( connection.openflow_datapathid, connection.openflow_auxiliaryid, OpenflowConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def error(self, connection): for m in Protocol.error(self, connection): yield m self._logger.warning('Redis connection is reset on %r', connection) for m in connection.waitForSend(RedisConnectionStateEvent(RedisConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m