Documentation ¶
Index ¶
- Variables
- func DialContext(ctx context.Context, network, addr string) (net.Conn, error)
- func DialContextReusePort(ctx context.Context, network, addr string) (net.Conn, error)
- func ReusePortControl(_, _ string, c syscall.RawConn) error
- func SetTCPOptions(conn net.Conn) error
- func SetTrafficClass(conn net.Conn, class int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportsReusePort = false
Functions ¶
func DialContext ¶ added in v1.3.3
DialContext dials via context and/or directly, depending on how it is configured. If dialing via proxy and allowing fallback, dialing for both happens simultaneously and the proxy connection is returned if successful.
func DialContextReusePort ¶ added in v1.8.0
DialContextReusePort tries dialing via proxy if a proxy is configured, and falls back to a direct connection reusing the port from the connections registry, if no proxy is defined, or connecting via proxy fails. If the context has a timeout, the timeout might be applied twice.
func SetTCPOptions ¶ added in v0.12.17
SetTCPOptions sets our default TCP options on a TCP connection, possibly digging through dialerConn to extract the *net.TCPConn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.