go-ethereum: github.com/ethereum/go-ethereum/common/fdlimit Index | Files

package fdlimit

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


Package Files


func Current Uses

func Current() (int, error)

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

func Maximum Uses

func Maximum() (int, error)

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

func Raise Uses

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')

Package fdlimit imports 1 packages (graph) and is imported by 15 packages. Updated 2020-06-29. Refresh now. Tools for package owners.