package fdlimit

import "github.com/ethereum/go-ethereum/common/fdlimit"

Index

Functions

func Current

func Current() (int, error)

Current retrieves the number of file descriptors allowed to be opened by this process.

func Maximum

func Maximum() (int, error)

Maximum retrieves the maximum number of file descriptors this process is allowed to request for itself.

func Raise

func Raise(max uint64) (uint64, error)

Raise tries to maximize the file descriptor allowance of this process to the maximum hard-limit allowed by the OS. Returns the size it was set to (may differ from the desired 'max')

Source Files

fdlimit_unix.go

Version
v1.15.11 (latest)
Published
May 5, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 day ago

Tools for package owners.