should print lines until receive end from server