netutil

package
v0.0.0-...-cd54735 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUserTimeout

func SetUserTimeout(conn *net.TCPConn, timeout time.Duration) error

SetUserTimeout sets the TCP_USER_TIMEOUT setting on the provided conn.

func TrackClose

func TrackClose(conn net.Conn) net.Conn

TrackClose wraps the conn and sets a finalizer on the returned value to close the conn and monitor that it was leaked.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL