Closed trolldbois closed 8 years ago
I’m attempting to use Haystack on Windows, where the ‘resource’ module is not available. It seems that Haystack only needs it in init.py, where it tries to remove file limits:
maxnofile = resource.getrlimit(resource.RLIMIT_NOFILE)
resource.setrlimit( resource.RLIMIT_NOFILE, (maxnofile[1], maxnofile[1]))
Is it possible to update Haystack to not use this code on Windows?
I’m attempting to use Haystack on Windows, where the ‘resource’ module is not available. It seems that Haystack only needs it in init.py, where it tries to remove file limits:
augment our file limit capacity to max
maxnofile = resource.getrlimit(resource.RLIMIT_NOFILE)
print 'maxnofile', maxnofile
resource.setrlimit( resource.RLIMIT_NOFILE, (maxnofile[1], maxnofile[1]))
Is it possible to update Haystack to not use this code on Windows?