Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable maxDescriptors on Illumos/Solaris #19295

Merged
merged 1 commit into from
Dec 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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