Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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