예제 #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
파일: zookeeper.py 프로젝트: dq5070410/vlcp
 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