Skip to content

Commit

Permalink
enable maxDescriptors on Illumos/Solaris (#19295)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarrOff authored Dec 30, 2021
1 parent a9223d4 commit 23d64be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/pure/asyncdispatch.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1974,11 +1974,11 @@ when defined(posix):
import posix

when defined(linux) or defined(windows) or defined(macosx) or defined(bsd) or
defined(zephyr) or defined(freertos):
defined(solaris) or defined(zephyr) or defined(freertos):
proc maxDescriptors*(): int {.raises: OSError.} =
## Returns the maximum number of active file descriptors for the current
## process. This involves a system call. For now `maxDescriptors` is
## supported on the following OSes: Windows, Linux, OSX, BSD.
## supported on the following OSes: Windows, Linux, OSX, BSD, Solaris.
when defined(windows):
result = 16_700_000
elif defined(zephyr) or defined(freertos):
Expand Down
4 changes: 2 additions & 2 deletions lib/pure/selectors.nim
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ else:
doAssert(timeout >= -1, "Cannot select with a negative value, got: " & $timeout)

when defined(linux) or defined(windows) or defined(macosx) or defined(bsd) or
defined(zephyr) or defined(freertos):
defined(solaris) or defined(zephyr) or defined(freertos):
template maxDescriptors*(): int =
## Returns the maximum number of active file descriptors for the current
## process. This involves a system call. For now `maxDescriptors` is
## supported on the following OSes: Windows, Linux, OSX, BSD.
## supported on the following OSes: Windows, Linux, OSX, BSD, Solaris.
when defined(windows):
16_700_000
elif defined(zephyr) or defined(freertos):
Expand Down

0 comments on commit 23d64be

Please sign in to comment.