You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/net
Conor Branagan 198e65c801 Add ConnectionsMax function that limits connections per pid.
The goal is to improve performance of connection fetching connections across
all processes when some processes can have several hundred or thousands of file
descriptors. Right now when you have many thousands of fds the process spends
lots of time inside the syscalls from Readdir and Readlink.

The public API works as before with two new functions:

- `ConnectionsMax`
- `ConnectionsPidMax`

Each function takes an additional int argument that sets the max number of fds
read per process.
8 years ago
..
net.go add Uids field to net_linux 9 years ago
net_darwin.go only run ifconfig/netstat if necessary, add some tests 9 years ago
net_darwin_test.go only run ifconfig/netstat if necessary, add some tests 9 years ago
net_fallback.go Add support for OpenBSD/amd64 8 years ago
net_freebsd.go add Timeout to invoke command and use common.Invoke refs: #201 9 years ago
net_linux.go Add ConnectionsMax function that limits connections per pid. 8 years ago
net_linux_test.go Add ConnectionsMax function that limits connections per pid. 8 years ago
net_openbsd.go Add support for OpenBSD/amd64 8 years ago
net_test.go fix net_test.go 9 years ago
net_unix.go fixed by golint. 9 years ago
net_windows.go Fix NetIOCounter windows interface behavior 9 years ago