Repository navigation
Conversation
Pass --no-conf so aria2c ignores user configuration that can keep the process alive (enable-rpc/daemon) or change parsed output. Enable resume explicitly with --continue=true because archive services rely on the .aria2 sidecar. Add a regression test for the generated arguments.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Aria2DownloadServicedid not pass--no-confto aria2c, so aria2c loaded the user's default configuration (~/.aria2/aria2.conf). When that configuration enables RPC (enable-rpc=true), aria2c stays alive after printingDownload completein order to serve the RPC endpoint.ProcessProgressStreamRunnertreats a zero exit status from aria2c as the signal that the download stream is finished. Because the process never exits, the stream never completes and callers (Xcodes.app and thexcodesCLI) remain stuck at the final download step.Reproduced with the aria2c binary bundled in Xcodes.app: with user config enabling RPC, aria2c prints
Download completebut does not exit. With--no-conf --continue=true, it exits with status 0.Changes
--no-confso this one-shot download is not affected by user aria2 configuration that can change process lifetime (enable-rpc,daemon) or the parsed output format (quiet, log level).--continue=trueexplicitly.XcodeArchiveServiceandRuntimeArchiveServiceboth inspect the.aria2sidecar to detect incomplete archives, so resume is part of the existing design; it was previously dependent on user configuration.Verification
swift test --disable-sandbox— 201 tests, 0 failures.Compatibility note
This intentionally changes behavior: XcodesKit-managed aria2 downloads no longer read user aria2 configuration. Users who relied on that configuration for proxies, custom CA certificates, or rate limits would need those options supported explicitly by XcodesKit, or use the URLSession download path instead.