Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 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
Esempio n. 4
0
File: redis.py Progetto: versee/vlcp
 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
Esempio n. 5
0
 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
Esempio n. 6
0
 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
Esempio n. 7
0
 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
Esempio n. 8
0
 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
Esempio n. 9
0
 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
Esempio n. 10
0
 def error(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     for m in connection.waitForSend(
             TestConnectionEvent(TestConnectionEvent.DOWN, connection)):
         yield m
Esempio n. 11
0
 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
Esempio n. 12
0
 def error(self, connection):
     for m in Protocol.closed(self, connection):
         yield m
     for m in connection.waitForSend(TestConnectionEvent(TestConnectionEvent.DOWN, connection)):
         yield m