dialConn 在原始连接基础上附带拨号延迟,供自适应复制逻辑使用。
| 9 | const 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. |
| 14 | func configureTCP(conn net.Conn) { |
| 15 | tcpConn, ok := conn.(*net.TCPConn) |
| 16 | if !ok { |
| 17 | return |
nothing calls this directly
no outgoing calls
no test coverage detected