Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#311] Fix a "resource exhausted" crash #312

Merged
merged 1 commit into from
Jan 6, 2025
Merged

Conversation

int-index
Copy link
Member

Problem: xrefcheck was crashing on repositories containing a large number of Markdown files, reporting the following internal error:

  openBinaryFile: resource exhausted (Too many open files)

Solution: use strict file IO (BS.readFile instead of BS.L.readFile) to ensure that file handles are released in a timely fashion.

Fixes #311

Problem: xrefcheck was crashing on repositories containing a large
number of Markdown files, reporting the following internal error:
  openBinaryFile: resource exhausted (Too many open files)

Solution: use strict file IO (BS.readFile instead of BS.L.readFile) to
ensure that file handles are released in a timely fashion.
@serokell-bot
Copy link
Contributor

1 Warning
⚠️ Bad issue ID in branch name.
Valid format for issue IDs: #123 or chore.

Generated by 🚫 Danger

@int-index int-index merged commit 2c50693 into master Jan 6, 2025
6 checks passed
@int-index int-index deleted the int-index/strict-io branch January 6, 2025 19:57
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.

[BUG] openBinaryFile: resource exhausted (Too many open files)
3 participants