Documentation
¶
Overview ¶
Package osutil document
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadAllLines ¶
ReadAllLines read a text file to a string array, each item is a line.
func SetIpv4TCPKeepAliveParameters ¶
func SetIpv4TCPKeepAliveParameters(idle, intvl, probes int)
SetIpv4TCPKeepAliveParameters set OS tcp keep alive parameters. idle: How many seconds to seed keep alive package after last send data intvl: If not receive keep alive package response, wait how many seconds to send another one (prob). probes: How many probs tried and not receive response, tcp think the link has gone. If failed, call os.Exit(-3) Currently only support linux.
func SetMaxOpenFiles ¶
func SetMaxOpenFiles(n uint64)
SetMaxOpenFiles set process ulimit of max opened files to max online endpoints + 50, if set failed, call os.Exit(-2).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.