@staticmethod
def _read(sock, chunk_len=2048):
    """
        Read all chunks from socket connection
        :param sock:
        :param chunk_len:
        :return:
        """
    result = sock.recv(chunk_len)
    if len(result) == chunk_len:
        while True:
            tmp = sock.recv(chunk_len)
            result += tmp
            if len(tmp) < chunk_len:
                break
    return result
