Skip to content

fix: prevent EMFILE errors with large directory structures#108

Open
ButterBetzi wants to merge 1 commit into
DamianB-BitFlipper:mainfrom
ButterBetzi:fix/emfile-errors-large-directories
Open

fix: prevent EMFILE errors with large directory structures#108
ButterBetzi wants to merge 1 commit into
DamianB-BitFlipper:mainfrom
ButterBetzi:fix/emfile-errors-large-directories

Conversation

@ButterBetzi

Copy link
Copy Markdown
  • Add file handle limiting to processor (max 50 concurrent file ops)
  • Add stat() throttling to watcher (max 200 concurrent stats)
  • Prevents 'too many open files' errors during initial scan
  • Fixes sync failures on systems with large photo/music libraries

Tested with directories containing 50,000+ files.

- Add file handle limiting to processor (max 50 concurrent file ops)
- Add stat() throttling to watcher (max 200 concurrent stats)
- Prevents 'too many open files' errors during initial scan
- Fixes sync failures on systems with large photo/music libraries

Tested with directories containing 50,000+ files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant