Lines Matching refs:Dialer
86 // DialWithDialer connects to the given network address using dialer.Dial and
88 // timeout or deadline given in the dialer apply to connection and TLS
93 func DialWithDialer(dialer *net.Dialer, network, addr string, config *Config) (*Conn, error) {
94 // We want the Timeout and Deadline values from dialer to cover the
97 timeout := dialer.Timeout
99 if !dialer.Deadline.IsZero() {
100 deadlineTimeout := dialer.Deadline.Sub(time.Now())
115 rawConn, err := dialer.Dial(network, addr)
165 return DialWithDialer(new(net.Dialer), network, addr, config)