Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 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
Exemplo n.º 4
0
Arquivo: redis.py Projeto: versee/vlcp
 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
Exemplo n.º 5
0
 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
Exemplo n.º 6
0
 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
Exemplo n.º 7
0
 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
Exemplo n.º 8
0
 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
Exemplo n.º 9
0
 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
Exemplo n.º 10
0
 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