MCPcopy Create free account
hub / github.com/cppla/moto / dialConn

Struct dialConn

controller/direct.go:11–14  ·  view source on GitHub ↗

dialConn 在原始连接基础上附带拨号延迟,供自适应复制逻辑使用。

Source from the content-addressed store, hash-verified

9const dialTimeout = 3 * time.Second
10
11// configureTCP applies the transport settings used by every outbound TCP
12// connection. DialFastContext deliberately returns the real *net.TCPConn so
13// callers do not lose access to TCP-specific operations behind a wrapper.
14func configureTCP(conn net.Conn) {
15 tcpConn, ok := conn.(*net.TCPConn)
16 if !ok {
17 return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected