This commit is contained in:
TenderIronh
2023-03-05 00:44:22 +08:00
parent c3a43be3cc
commit 791d910314
11 changed files with 43 additions and 13 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func setRLimit() error {
if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &limit); err != nil {
return err
}
limit.Max = 1024 * 1024
limit.Max = 65536
limit.Cur = limit.Max
if err := syscall.Setrlimit(syscall.RLIMIT_NOFILE, &limit); err != nil {
return err