示例#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
示例#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
示例#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
示例#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