From 9320db8806afd19728e7644fe5338ece6bf7347c Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sun, 3 Jul 2022 01:01:04 -0700 Subject: [PATCH] don't limit the number of FDs on Windows (#58) --- sys_not_unix.go | 2 +- sys_windows.go | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 sys_windows.go diff --git a/sys_not_unix.go b/sys_not_unix.go index 84038bd..d29b927 100644 --- a/sys_not_unix.go +++ b/sys_not_unix.go @@ -1,4 +1,4 @@ -//go:build !linux && !darwin +//go:build !linux && !darwin && !windows package rcmgr diff --git a/sys_windows.go b/sys_windows.go new file mode 100644 index 0000000..7387eb8 --- /dev/null +++ b/sys_windows.go @@ -0,0 +1,11 @@ +//go:build windows + +package rcmgr + +import ( + "math" +) + +func getNumFDs() int { + return math.MaxInt +}