link-checker
link-checker copied to clipboard
Error: Too many open files - link-checker-crawled-pages.pstore
Love the gem! But unfortunately, it's not working for me on my large site.
I end up with errors only a few thousand links into my several hundred thousand page site, http://www.thehollywoodgossip.com
Are there settings / tweaks I can make to make this work?
Hi, sorry for the delay. I'm not sure why the process is opening too many file handles. But I'll try to figure it out by reproducing your findings with http://www.thehollywoodgossip.com. Thanks for the report.
Same issue here while testing the "public" folder in my local Octopress.
How can be solved? many thanks!
Find:
threads << check_page(open(file), file)
Replace with:
threads << check_page(File.open(file, 'r:utf-8', &:read), file)
@ehoch, solution from @Paxa works. Please close the issue.