File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,16 +47,6 @@ func DialRedirectFromHostPortPairs(subs []HostPortPair) DialRedirectFunc {
4747 }
4848}
4949
50- // defaultKeepAliveConfig returns configuration that enables keep-alive pings with OS-specific parameters.
51- func defaultKeepAliveConfig () net.KeepAliveConfig {
52- return net.KeepAliveConfig {
53- Enable : true ,
54- Idle : - 1 ,
55- Interval : - 1 ,
56- Count : - 1 ,
57- }
58- }
59-
6050type DialRetryConfig struct {
6151 Attempts int
6252 Backoff time.Duration
@@ -94,6 +84,16 @@ func DefaultDialConfig() *DialConfig {
9484 }
9585}
9686
87+ // defaultKeepAliveConfig returns configuration that enables keep-alive pings with OS-specific parameters.
88+ func defaultKeepAliveConfig () net.KeepAliveConfig {
89+ return net.KeepAliveConfig {
90+ Enable : true ,
91+ Idle : - 1 ,
92+ Interval : - 1 ,
93+ Count : - 1 ,
94+ }
95+ }
96+
9797type dialContextFunc func (ctx context.Context , network , address string ) (net.Conn , error )
9898
9999type Dialer struct {
You can’t perform that action at this time.
0 commit comments