We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5910715 + 1fc24b9 commit d8301f8Copy full SHA for d8301f8
lib/gpi/sysspecs.py
@@ -102,15 +102,14 @@ def findAndSetMaxOpenFilesLimit(self):
102
import resource
103
lim = resource.getrlimit(resource.RLIMIT_NOFILE)[0]
104
hard_lim = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
105
+ # if the hard limit is infinite (unlimited resources) cap it at 10000
106
+ if hard_lim == resource.RLIM_INFINITY:
107
+ lim = 10000
108
+ hard_lim = 10000
109
else:
110
lim = 10000
111
hard_lim = 10000
112
- # if the hard limit is infinite (unlimited resources) cap it at 10000
- if hard_lim == resource.RLIM_INFINITY:
- lim = 10000
- hard_lim = 10000
113
-
114
while (not self._inWindows) and (not maxFound):
115
try:
116
lim += 10
0 commit comments