|
@@ -36,7 +36,7 @@ func MaximizeOpenFileLimit() (int, error) {
|
|
// macOS doesn't like a soft limit greater then OPEN_MAX
|
|
// macOS doesn't like a soft limit greater then OPEN_MAX
|
|
// See also: man setrlimit
|
|
// See also: man setrlimit
|
|
if runtime.GOOS == "darwin" && lim.Max > darwinOpenMax {
|
|
if runtime.GOOS == "darwin" && lim.Max > darwinOpenMax {
|
|
- lim.Cur = darwinOpenMax
|
|
|
|
|
|
+ lim.Max = darwinOpenMax
|
|
}
|
|
}
|
|
|
|
|
|
// Try to increase the limit to the max.
|
|
// Try to increase the limit to the max.
|