don't limit the number of FDs on Windows (#58)

This commit is contained in:
Marten Seemann 2022-07-03 01:01:04 -07:00 committed by GitHub
parent f704ffd0f1
commit 9320db8806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,4 @@
//go:build !linux && !darwin
//go:build !linux && !darwin && !windows
package rcmgr

11
sys_windows.go Normal file
View File

@ -0,0 +1,11 @@
//go:build windows
package rcmgr
import (
"math"
)
func getNumFDs() int {
return math.MaxInt
}