altstoreio / altstoreio/AltStore
Increase open files limit in AltServer
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 14.4k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
While trying to sideload uYouPlus, AltServer would consistently fail during the Writing to device... phase with an error too many open files. I ran ulimit -n 4096 and ran AltServer from the same session, and it worked fine. It might be a good idea to either increase the file descriptor limit on every launch, or maybe check how many files the .ipa contains before trying to open them all and increase to match.
Alternatively, closing each file handle after using it instead of all at once at the end of the phase would be a better solution, but I haven't looked at how AltServer handles this and don't know if that fits.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing AltServer's "Writing to device..." phase and how it opens and retains files from the IPA. Reproduce the failure with the default file-descriptor limit, then compare it with a session using ulimit -n 4096. Done means sideloading no longer fails with "too many open files" without requiring that manual workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100