If --continue is not enabled, set resume_len to zero.