common/fdlimit: fix macos file descriptors for Go 1.12

This commit is contained in:
Péter Szilágyi
2019-02-27 14:20:29 +02:00
parent 38c30f8dd8
commit fca5f9fd6f
3 changed files with 73 additions and 1 deletions

View File

@ -18,6 +18,7 @@ package fdlimit
import "fmt"
// hardlimit is the number of file descriptors allowed at max by the kernel.
const hardlimit = 16384
// Raise tries to maximize the file descriptor allowance of this process