Skip to content

Commit

Permalink
don't limit the number of FDs on Windows (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored Jul 3, 2022
1 parent c2b0eb0 commit e5db550
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/host/resource-manager/sys_not_unix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build !linux && !darwin
//go:build !linux && !darwin && !windows

package rcmgr

Expand Down
11 changes: 11 additions & 0 deletions p2p/host/resource-manager/sys_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//go:build windows

package rcmgr

import (
"math"
)

func getNumFDs() int {
return math.MaxInt
}

0 comments on commit e5db550

Please sign in to comment.