def closed(self, connection): for m in Protocol.closed(self, connection): yield m connection.scheduler.ignore(JsonRPCRequestEvent.createMatcher(connection = connection)) self._logger.info('JSON-RPC connection is closed on %r', connection) for m in connection.waitForSend(JsonRPCConnectionStateEvent(JsonRPCConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def closed(self, connection): for m in Protocol.closed(self, connection): yield m connection.handler.close() self._logger.info('Openflow connection is closed 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 closed(self, connection): for m in Protocol.closed(self, connection): yield m for m in connection.waitForSend( MyProtocolConnectionStateEvent( MyProtocolConnectionStateEvent.DOWN, connection, connection.connmark, self)): yield m
def closed(self, connection): for m in Protocol.closed(self, connection): yield m self._logger.info('Redis connection is closed on %r', connection) for m in connection.waitForSend( RedisConnectionStateEvent( RedisConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def closed(self, connection): for m in Protocol.closed(self, connection): yield m for m in connection.inputstream.write(b'', connection, True, 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 closed(self, connection): for m in Protocol.closed(self, connection): yield m connection.scheduler.ignore( JsonRPCRequestEvent.createMatcher(connection=connection)) self._logger.info('JSON-RPC connection is closed on %r', connection) for m in connection.waitForSend( JsonRPCConnectionStateEvent( JsonRPCConnectionStateEvent.CONNECTION_DOWN, connection, connection.connmark, self)): yield m
def closed(self, connection): for m in Protocol.closed(self, connection): yield m connection.handler.close() self._logger.info('Openflow connection is closed 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.closed(self, connection): yield m for m in connection.waitForSend( TestConnectionEvent(TestConnectionEvent.DOWN, connection)): yield m
def closed(self, connection): for m in Protocol.closed(self, connection): yield m self._logger.info('Redis connection is closed 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.closed(self, connection): yield m for m in connection.waitForSend(TestConnectionEvent(TestConnectionEvent.DOWN, connection)): yield m