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

package fdlimit

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

Index

Package Files

fdlimit_unix.go

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). Updated 2019-07-06. Refresh now. Tools for package owners.